public NotificationProvider(IProviderClient providerClient, INotificationServiceClient serviceClient, IUserNotificationSettingsRepository repository) { _providerClient = providerClient; _serviceClient = serviceClient; _repository = repository; }
public ConversationController(IConversationStore store, ILogger <ConversationController> logger, IMetricsClient client, INotificationServiceClient notificationService) { this.store = store; this.logger = logger; this.notificationService = notificationService; PostMessageMetric = client.CreateAggregateMetric("PostMessageTime"); GetMessagesMetric = client.CreateAggregateMetric("GetMessageTime"); }
public ConversationsController(IConversationStore store, IMetricsClient client, ILogger <ConversationsController> logger, IProfileStore profileStore, INotificationServiceClient notificationService) { this.store = store; this.logger = logger; this.profileStore = profileStore; this.notificationService = notificationService; PostConversationMetric = client.CreateAggregateMetric("PostConversationTime"); GetConversationMetric = client.CreateAggregateMetric("GetConversationTime"); }
public UserNotificationSettingsUpdatedHandler(IHandler handler, IUserNotificationSettingsRepository repository, INotificationServiceClient serviceClient, IUserNotificationSettingsCache cache) { _handler = handler; _repository = repository; _serviceClient = serviceClient; _cache = cache; }
public MainViewModel( IChartSettingDataService service, INotificationServiceClient notification, IEventAggregator eventAggregator, Func <IChartViewModel> chartModel) { _service = service; _eventAggregator = eventAggregator; _chartModel = chartModel; _notification = notification; _eventAggregator.GetEvent <ChartViewItemEvent>().Subscribe(OnChartItemView); SaveCommand = new DelegateCommand(OnSaveExecute, OnSaveCanExecute); DeleteCommand = new DelegateCommand(OnDeleteExecute, OnDeleteCanExecute); AddNewCommand = new DelegateCommand(OnAddNewExecute, OnAddNewCanExecute); _notification.OpenConnection(new Uri(ConfigurationManager.ConnectionStrings["NotificationRemote"].ConnectionString)); _notification.EventMessage += OnNotificationRecieved; }
private void OnNotificationRecieved(INotificationServiceClient s, NotificationPayload message) { Dispatcher?.Invoke(() => { switch (message.Notification) { case Notifications.Error: Debug.WriteLine(message); break; case Notifications.Connect: Debug.WriteLine("CONNECTED"); break; case Notifications.Disconnect: Debug.WriteLine("DISCONNECTED"); break; case Notifications.Notify: ChartViewModel?.LoadAsync(SelectedItem); break; } }); }
public PaymentController(IPaymentDatabase paymentDatabase, INotificationServiceClient notificationServiceClient) { _paymentDatabase = paymentDatabase; _notificationServiceClient = notificationServiceClient; }
public CartController(INotificationServiceClient notificationServiceClient) { _notificationServiceClient = notificationServiceClient; }
public NotificationsHubNegotiateQueryHandler(INotificationServiceClient notificationServiceClient) =>
public CustomerController(ICustomerDatabase customerDatabase, INotificationServiceClient notificationServiceClient) { _customerDatabase = customerDatabase; _notificationServiceClient = notificationServiceClient; }
public NotificationClientResiliencyDecorator(INotificationServiceClient notificationClient, IResiliencyPolicy resiliencyPolicy) { this.resiliencyPolicy = resiliencyPolicy; this.notificationClient = notificationClient; }