public Invocation(ClientMessage request, Guid?targetUuid = null, int partitionId                      = -1,
                   Connection boundConnection             = null, DistributedEventHandler eventHandler = null, string objectName = null)
 {
     Request         = request;
     TargetUuid      = targetUuid;
     PartitionId     = partitionId;
     BoundConnection = boundConnection;
     EventHandler    = eventHandler;
     ObjectName      = objectName;
     Future          = new SettableFuture <ClientMessage>();
     StartTimeMillis = Clock.CurrentTimeMillis();
     if (PartitionId != -1)
     {
         Request.PartitionId = PartitionId;
     }
 }
示例#2
0
 public ClientInvocation(IClientMessage message)
 {
     _message = message;
     _future  = new SettableFuture <IClientMessage>();
     _invocationTimeMillis = Clock.CurrentTimeMillis();
 }
 public ClientInvocation(IClientMessage message)
 {
     _message = message;
     _future  = new SettableFuture <IClientMessage>();
 }