Beispiel #1
0
 public ConversationsController(IConversationsStore conversationsStore, IProfileStore profileStore,
                                ILogger <ConversationsController> logger)
 {
     this.conversationsStore = conversationsStore;
     this.profileStore       = profileStore;
     this.logger             = logger;
 }
Beispiel #2
0
        public ConversationStoreMetricsDecorator(IConversationsStore store, IMetricsClient metricsClient)
        {
            this.store = store;

            listMessagesMetric      = metricsClient.CreateAggregateMetric("ListMessagesfromConversationsStoreTime");
            addMessageMetric        = metricsClient.CreateAggregateMetric("AddMessageToConversationsStoreTime");
            getMessageMetric        = metricsClient.CreateAggregateMetric("GetMessageFromConversationsStoreTime");
            listConversationsMetric = metricsClient.CreateAggregateMetric("ListConversationsTime");
            addConversationMetric   = metricsClient.CreateAggregateMetric("AddConversationTime");
            getConversationMetric   = metricsClient.CreateAggregateMetric("GetConversationsTime");
        }
 public ConversationsController(IConversationsStore conversationsStore, IProfileStore profileStore,
                                ILogger <ConversationsController> logger, IMetricsClient metricsClient, INotificationService notificationService)
 {
     this.conversationsStore  = conversationsStore;
     this.profileStore        = profileStore;
     this.logger              = logger;
     this.metricsClient       = metricsClient;
     this.notificationService = notificationService;
     listConversationsControllerTimeMetric  = this.metricsClient.CreateAggregateMetric("ListConversationsControllerTime");
     createConversationControllerTimeMetric = this.metricsClient.CreateAggregateMetric("CreateConversationControllerTime");
 }
 public ConversationService(IConversationsStore conversationsStore, ILogger <ConversationService> logger, INotificationService notificationService)
 {
     this.conversationsStore  = conversationsStore;
     this.logger              = logger;
     this.notificationService = notificationService;
 }
 public ConversationsStoreFaultToleranceDecorator(IConversationsStore store, ISyncPolicy faultTolerancePolicy)
 {
     this.store = store;
     this.faultTolerancePolicy = faultTolerancePolicy;
 }
Beispiel #6
0
 public ConversationController(IConversationsStore conversationsStore, ILogger <ConversationController> logger)
 {
     this.conversationsStore = conversationsStore;
     this.logger             = logger;
 }