SignalRConnectionStandard NuGet Package

Encapsula a criação de conexões e chamada aos métodos de um serviço SignalR.
Ex.: SignalRCreateConnection exemploHub = new SignalRCreateConnection("http://localhost:8082/signalr", "ExampleHub");
SignalRCreateConnection notificationHub = new SignalRCreateConnection(host, "NotificationHub");

1- "Invocando um método no server SignalR"
Task<string> date = exemploHub.Invoke<string>("GetDateTimeFormated");
Console.WriteLine(date.Result);

2- Registrando-se para um evento
notificationHub.On<string>("getNewGuid", d =>
{
Console.WriteLine(d);
});

3- Verificar disponibilidade do serviço
if(notificationHub.ServerOnline)
{
Console.WriteLine("Serviço OnLine");.




Got any SignalRConnectionStandard Question?





Info

Version: 1.0.0
Author(s): Roberto Camara
Last Update: Monday, September 23, 2019
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/RobertoCamara/UtilsSignalR
NuGet Url: https://www.nuget.org/packages/SignalRConnectionStandard


Install
Install-Package SignalRConnectionStandard
dotnet add package SignalRConnectionStandard
paket add SignalRConnectionStandard
SignalRConnectionStandard Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.3

avg-downloads-per-day

0

days-since-last-release

1886