コード例 #1
0
        public IFuture <IClientMessage> InvokeListenerOnConnection(IClientMessage request, DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder, ClientConnection connection)
        {
            var clientInvocation = new ClientListenerInvocation(request, handler, responseDecoder, connection);

            Send(connection, clientInvocation);
            return(clientInvocation.Future);
        }
コード例 #2
0
        private static string GetRegistrationIdFromResponse(ClientListenerInvocation invocation)
        {
            var originalResponse = (ClientMessage)invocation.Future.Result;

            originalResponse.Index(originalResponse.GetDataOffset());
            return(invocation.ResponseDecoder(originalResponse));
        }
コード例 #3
0
 private IFuture <IClientMessage> ReregisterListener(ClientListenerInvocation invocation)
 {
     if (Logger.IsFinestEnabled())
     {
         Logger.Finest("Re-registering listener for " + invocation.Message);
     }
     return(Invoke(invocation));
 }
コード例 #4
0
 private void ReregisterListener(ClientListenerInvocation invocation)
 {
     Logger.Finest("Re-registering listener for " + invocation.Message);
     Invoke(invocation, GetRandomAddress());
 }
コード例 #5
0
 private void ReregisterListener(ClientListenerInvocation invocation)
 {
     Logger.Finest("Re-registering listener for " + invocation.Message);
     Invoke(invocation, GetRandomAddress());
 }
コード例 #6
0
 private static string GetRegistrationIdFromResponse(ClientListenerInvocation invocation)
 {
     var originalResponse = (ClientMessage) invocation.Future.Result;
     originalResponse.Index(originalResponse.GetDataOffset());
     return invocation.ResponseDecoder(originalResponse);
 }
コード例 #7
0
 public IFuture<IClientMessage> InvokeListenerOnConnection(IClientMessage request,
     DistributedEventHandler handler, DecodeStartListenerResponse responseDecoder, ClientConnection connection)
 {
     var clientInvocation = new ClientListenerInvocation(request, handler, responseDecoder, connection);
     Send(connection, clientInvocation);
     return clientInvocation.Future;
 }
コード例 #8
0
 private IFuture<IClientMessage> ReregisterListener(ClientListenerInvocation invocation)
 {
     if (Logger.IsFinestEnabled())
     {
         Logger.Finest("Re-registering listener for " + invocation.Message);
     }
     return Invoke(invocation);
 }