コード例 #1
0
        public static UpStreamItemController <TResult> GetUpAndDownStreamController <TResult, T1, T2, T3, T4, T5>(this HubConnection hub, string target, params object[] args)
        {
            if (hub.State != ConnectionStates.Connected)
            {
                return(null);
            }

            return(hub.GetUpStreamController <TResult>(target, 5, true, args));
        }
コード例 #2
0
        public static UpStreamItemController <TResult> GetUpStreamController <TResult, T1, T2, T3, T4, T5>(this HubConnection hub, string target)
        {
            if (hub.State != ConnectionStates.Connected)
            {
                return(null);
            }

            return(hub.GetUpStreamController <TResult>(target, 5, false, HubConnection.EmptyArgs));
        }
コード例 #3
0
        public static UpStreamItemController <TResult> GetUpAndDownStreamController <TResult, T1>(this HubConnection hub, string target)
        {
            if (hub.State != ConnectionStates.Connected)
            {
                return(null);
            }

            return(hub.GetUpStreamController <TResult>(target, 1, true, HubConnection.EmptyArgs));
        }
コード例 #4
0
        public static UpStreamItemController <TResult> GetUpStreamController <TResult, T1>(this HubConnection hub, string target, params object[] args)
        {
            if (hub.State != ConnectionStates.Connected)
            {
                return(null);
            }

            return(hub.GetUpStreamController <TResult>(target, 1, false, args));
        }