SignalRConnection 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 SignalRConnection Question?





Info

Version: 1.0.7
Author(s): Roberto Camara
Last Update: Thursday, April 19, 2018
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/RobertoCamara/UtilsSignalR
NuGet Url: https://www.nuget.org/packages/SignalRConnection


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



Tags



STATS

must-have-score

.3

avg-downloads-per-day

1

days-since-last-release

2442