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)); }
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 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); }