Exemplo n.º 1
0
 public PersistentSubscriptionClient(Guid correlationId,
                                     Guid connectionId,
                                     IEnvelope envelope,
                                     int inFlightMessages,
                                     string username,
                                     string from,
                                     Stopwatch watch,
                                     bool extraStatistics)
 {
     _correlationId          = correlationId;
     _connectionId           = connectionId;
     _envelope               = envelope;
     _allowedMessages        = inFlightMessages;
     Username                = username;
     From                    = @from;
     MaximumInFlightMessages = inFlightMessages;
     if (extraStatistics)
     {
         _extraStatistics = new RequestStatistics(watch, 1000);
     }
 }
 public PersistentSubscriptionClient(Guid correlationId,
     Guid connectionId,
     IEnvelope envelope,
     int inFlightMessages,
     string username,
     string from,
     Stopwatch watch,
     bool extraStatistics)
 {
     _correlationId = correlationId;
     _connectionId = connectionId;
     _envelope = envelope;
     _allowedMessages = inFlightMessages;
     Username = username;
     From = @from;
     MaximumInFlightMessages = inFlightMessages;
     if (extraStatistics)
     {
         _extraStatistics = new RequestStatistics(watch, 1000);
     }
 }