![]() |
VOOZH | about |
dotnet add package BackEndManagerBusinessLogic --version 1.0.0
NuGet\Install-Package BackEndManagerBusinessLogic -Version 1.0.0
<PackageReference Include="BackEndManagerBusinessLogic" Version="1.0.0" />
<PackageVersion Include="BackEndManagerBusinessLogic" Version="1.0.0" />Directory.Packages.props
<PackageReference Include="BackEndManagerBusinessLogic" />Project file
paket add BackEndManagerBusinessLogic --version 1.0.0
#r "nuget: BackEndManagerBusinessLogic, 1.0.0"
#:package BackEndManagerBusinessLogic@1.0.0
#addin nuget:?package=BackEndManagerBusinessLogic&version=1.0.0Install as a Cake Addin
#tool nuget:?package=BackEndManagerBusinessLogic&version=1.0.0Install as a Cake Tool
program.cs
#region signalr
builder.Services.AddCors(options => options.AddPolicy(name: "enablecorsforclient", builder => {
builder.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials()
.WithOrigins("http://localhost:5051")
.SetIsOriginAllowed((host) => true);
}));
builder.Services.AddScoped<NotificationHub>();
builder.Services.AddSignalR().AddHubOptions<NotificationHub>(options => {
options.EnableDetailedErrors = true;
});
builder.Services.AddSingleton<INotificationService, NotificationService>();
builder.Services.AddTransient<yourBusinessLogic>();
var app = builder.Build();
app.UseStaticFiles();
#region signalr
app.UseCors("enablecorsforclient");
app.MapHub<NotificationHub>("/NotificationHub");
#endregion
"use strict";
const opts = {
skipNegotiation: true,
transport: signalR.HttpTransportType.WebSockets
};
var connection = new signalR.HubConnectionBuilder().withUrl("/NotificationHub", opts)
.configureLogging(signalR.LogLevel.Debug)
.withAutomaticReconnect([...Array(10)].map((_, i) => i ? 5000 : 0))
.build();
connection.error
connection.on("SendMessage", wsgotdata );
function wsgotdata(d) {
var li = document.createElement("li");
document.getElementById("messagesList").appendChild(li);
li.textContent = `Notifica : ${d.notificationType} : Sport ${d.message.sport} : Cat: ${d.message.category} : tournament: ${d.message.tournament}`;
li = document.createElement("li");
document.getElementById("messagesList").appendChild(li);
li.textContent = `content: ${d.message.additionalInfo}`;
console.log(d);
}
connection.start().then(function () {
document.getElementById("sendButton").disabled = false;
}).catch(function (err) {
return console.error(err.toString());
});
document.getElementById("sendButton").addEventListener("click", function (event) {
var user = document.getElementById("userInput").value;
var message = document.getElementById("messageInput").value;
connection.invoke("SendMessage", user, message).catch(function (err) {
return console.error(err.toString());
});
event.preventDefault();
});
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 237 | 12/21/2024 |