示例#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);
        }
        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));
 }
 private void ReregisterListener(ClientListenerInvocation invocation)
 {
     Logger.Finest("Re-registering listener for " + invocation.Message);
     Invoke(invocation, GetRandomAddress());
 }
 private void ReregisterListener(ClientListenerInvocation invocation)
 {
     Logger.Finest("Re-registering listener for " + invocation.Message);
     Invoke(invocation, GetRandomAddress());
 }
 private static string GetRegistrationIdFromResponse(ClientListenerInvocation invocation)
 {
     var originalResponse = (ClientMessage) invocation.Future.Result;
     originalResponse.Index(originalResponse.GetDataOffset());
     return invocation.ResponseDecoder(originalResponse);
 }
 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;
 }
 private IFuture<IClientMessage> ReregisterListener(ClientListenerInvocation invocation)
 {
     if (Logger.IsFinestEnabled())
     {
         Logger.Finest("Re-registering listener for " + invocation.Message);
     }
     return Invoke(invocation);
 }