Exemplo n.º 1
0
        public static IDisposable On <T1, T2, T3, T4, T5>(this SignalRChannel channel, string methodName, Action <T1, T2, T3, T4, T5> handler)
        {
            var connection = new NonNullable <HubConnection>(channel.Connection);

            connection.Value.On(methodName, handler);
            return(null);
        }
Exemplo n.º 2
0
        public static IDisposable On(this SignalRChannel channel, string methodName, Type[] parameterTypes, Func <object[], Task> handler)
        {
            var connection = new NonNullable <HubConnection>(channel.Connection);

            return(connection.Value.On(methodName, parameterTypes, handler));
        }
Exemplo n.º 3
0
        public static IDisposable On(this SignalRChannel channel, string methodName, Action handler)
        {
            var connection = new NonNullable <HubConnection>(channel.Connection);

            return(connection.Value.On(methodName, handler));
        }
Exemplo n.º 4
0
 internal SignalRChangedMessage(SignalRChannel channel)
 {
     ConnectionState    = channel.ConnectionState;
     ConnectionAttempts = channel.ConnectionAttempts;
 }