public void AddClient(Guid correlationId, Guid connectionId, IEnvelope envelope, int maxInFlight, string user, string @from) { lock (_lock) { var client = new PersistentSubscriptionClient(correlationId, connectionId, envelope, maxInFlight, user, @from, _totalTimeWatch, _settings.ExtraStatistics); _pushClients.AddClient(client); TryPushingMessagesToClients(); } }