A description of a client-side hub method invocation.
 public HubOutgoingInvokerContext(IConnection connection, string signal, ClientHubInvocation invocation, IList<string> excludedSignals)
 {
     Connection = connection;
     Signal = signal;
     Invocation = invocation;
     ExcludedSignals = excludedSignals;
 }
Exemple #2
0
 public HubOutgoingInvokerContext(IConnection connection, string signal, ClientHubInvocation invocation, IEnumerable <string> excludedSignals)
 {
     Connection      = connection;
     Signal          = signal;
     Invocation      = invocation;
     ExcludedSignals = excludedSignals;
 }
 public ContractedClientHubInvocation(ClientHubInvocation invocation)
 {
     Target = invocation.Target;
     Hub = invocation.Hub;
     Method = invocation.Method;
     Args = invocation.Args;
     State = invocation.State;
 }
 public ContractedClientHubInvocation(ClientHubInvocation invocation)
 {
     //Target = invocation.Target; I think this was removed
     Hub = invocation.Hub;
     Method = invocation.Method;
     Args = invocation.Args;
     State = invocation.State;
 }
Exemple #5
0
        public Task Invoke(string method, params object[] args)
        {
            var invocation = new ClientHubInvocation
            {
                Hub    = _hubName,
                Method = method,
                Args   = args
            };

            return(_send(PrefixHelper.GetHubName(_hubName), invocation, _exclude));
        }
Exemple #6
0
        public Task Invoke(string method, params object[] args)
        {
            var invocation = new ClientHubInvocation
            {
                Hub = _hubName,
                Method = method,
                Args = args
            };

            return _send(PrefixHelper.GetHubName(_hubName), invocation, _exclude);
        }
Exemple #7
0
        public Task Invoke(string method, params object[] args)
        {
            var invocation = new ClientHubInvocation
            {
                Hub    = _hubName,
                Method = method,
                Args   = args
            };

            var context = new HubOutgoingInvokerContext(_connection, _signal, invocation)
            {
                ExcludedSignals = _exclude
            };

            return(_invoker.Send(context));
        }
Exemple #8
0
        public Task Invoke(string method, params object[] args)
        {
            var invocation = new ClientHubInvocation
            {
                Hub = _hubName,
                Method = method,
                Args = args
            };
            
            var context = new HubOutgoingInvokerContext(_connection, _signal, invocation)
            {
                ExcludedSignals = _exclude
            };

            return _invoker.Send(context);
        }
 public HubOutgoingInvokerContext(IConnection connection, string signal, ClientHubInvocation invocation)
 {
     Connection = connection;
     Signal = signal;
     Invocation = invocation;
 }
 public HubOutgoingInvokerContext(IConnection connection, IList<string> signals, ClientHubInvocation invocation)
 {
     Connection = connection;
     Signals = signals;
     Invocation = invocation;
 }
 public HubOutgoingInvokerContext(IConnection connection, IList <string> signals, ClientHubInvocation invocation)
 {
     Connection = connection;
     Signals    = signals;
     Invocation = invocation;
 }
 public HubOutgoingInvokerContext(IConnection connection, string signal, ClientHubInvocation invocation)
 {
     Connection = connection;
     Signal     = signal;
     Invocation = invocation;
 }