Пример #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);
        }
Пример #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));
        }
Пример #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));
        }
Пример #4
0
 internal SignalRChangedMessage(SignalRChannel channel)
 {
     ConnectionState    = channel.ConnectionState;
     ConnectionAttempts = channel.ConnectionAttempts;
 }