Пример #1
0
 public DeletePackageTask(
     INotifierService notifier,
     ISupportService support)
 {
     this.notifier = notifier;
     this.support  = support;
 }
 public TaskerNotifier(INotifierService notifierService, IOptionsMonitor <TaskerConfiguration> options,
                       ILogger <TaskerNotifier> logger)
 {
     mNotifierService = notifierService ?? throw new ArgumentNullException(nameof(notifierService));
     mTaskerOptions   = options ?? throw new ArgumentNullException(nameof(options));
     mLogger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Пример #3
0
 public TaskService(ITaskRepository tasksRepository, ILogger <TaskService> logger, IMapper mapper, INotifierService notifierService, ISpecificationFactory specFactory)
 {
     _tasksRepository = tasksRepository;
     _logger          = logger;
     _mapper          = mapper;
     _notifierService = notifierService;
     _specFactory     = specFactory;
 }
Пример #4
0
 public AlertTestExecutor(
     T chartGenerator,
     INotifierService notifierService,
     IBuilder <Notification> notificationBuilder)
 {
     _chartDataGenerator  = chartGenerator;
     _notifierService     = notifierService;
     _notificationBuilder = notificationBuilder;
 }
 public NotificationService(
     IConfiguration configuration,
     IAccountService accountService,
     INotifierService notifierService
     )
 {
     _accountService  = accountService;
     _appSettings     = configuration.GetSection("AppSettings");
     _notifierService = notifierService;
 }
Пример #6
0
 protected async Task NotifyAsync(INotifierService service, NotifierData data)
 {
     try
     {
         await service.NotifyAsync(data);
     }
     catch (Exception ex)
     {
         _logger.Error <NotificationsService>(ex);
     }
 }
Пример #7
0
 protected void Notify(INotifierService service, NotifierData data)
 {
     try
     {
         service.Notify(data);
     }
     catch (Exception ex)
     {
         _logger.Error <NotificationsService>(ex);
     }
 }
Пример #8
0
 protected void Notify(INotifierService service, NotifierData data)
 {
     try
     {
         service.Notify(data);
     }
     catch (Exception ex)
     {
         _exceptionLogger.Log(ex);
     }
 }
Пример #9
0
 public PaymentService(TradingPlatformDbContext dbContext, ICacheService cache, IKeystoreService keystoreService,
                       IAccountService accountService, IOrderService orderService, IHttpContextAccessor httpContextAccessor,
                       ISmtpService smtpService, INotifierService notifierService, IHashService hashService)
 {
     this.dbContext           = dbContext;
     this.cache               = cache;
     this.keystoreService     = keystoreService;
     this.accountService      = accountService;
     this.orderService        = orderService;
     this.httpContextAccessor = httpContextAccessor;
     this.smtpService         = smtpService;
     this.notifierService     = notifierService;
     this.hashService         = hashService;
 }
Пример #10
0
 public IndexPackageTask(
     IPackageProcessorConfiguration configuration,
     INotifierService notifier,
     ISupportService support,
     IAddInfoBuilder addInfoBuilder,
     IPdbStoreManager pdbStoreManager,
     IFileCompressor fileCompressor)
 {
     this.configuration   = configuration;
     this.notifier        = notifier;
     this.support         = support;
     this.addInfoBuilder  = addInfoBuilder;
     this.pdbStoreManager = pdbStoreManager;
     this.fileCompressor  = fileCompressor;
 }
Пример #11
0
 public NotificationService(INotifierService notifierService,
                            IScheduleInfoRepository scheduleRepository,
                            IScheduleJobRepository scheduleJobRepository,
                            IMessageCompiler messageCompiler,
                            IScheduledAsyncJobService <NotificationJobParameter> scheduledJobService,
                            IMapper mapper)
 {
     _scheduleRepository    = scheduleRepository;
     _scheduleJobRepository = scheduleJobRepository;
     _scheduledJobService   = scheduledJobService;
     _scheduleJobRepository = scheduleJobRepository;
     _messageCompiler       = messageCompiler;
     _notifierService       = notifierService;
     _mapper = mapper;
 }
Пример #12
0
        public void Run(
            ISettingsService setting,
            IServersService servers,
            IConfigMgrService configMgr,
            IShareLinkMgrService slinkMgr,
            INotifierService notifier)
        {
            this.configMgrService = configMgr;
            this.settingService   = setting;
            this.serversService   = servers;
            this.slinkMgrService  = slinkMgr;
            this.notifierService  = notifier;

            this.utilsService = new ApiComponents.UtilsApi();
            this.webService   = new ApiComponents.WebApi();
        }
Пример #13
0
 public PackageProcessor(
     IPackageProcessorConfiguration configuration,
     IStorageService storage,
     ISchedulerService scheduler,
     INotifierService notifier,
     ISupportService support,
     IAddInfoBuilder addInfoBuilder,
     IPdbStoreManager pdbStoreManager,
     IFileCompressor fileCompressor)
 {
     this.configuration   = configuration;
     this.storage         = storage;
     this.scheduler       = scheduler;
     this.notifier        = notifier;
     this.support         = support;
     this.addInfoBuilder  = addInfoBuilder;
     this.pdbStoreManager = pdbStoreManager;
     this.fileCompressor  = fileCompressor;
 }
Пример #14
0
 public RecurrenceCreatorService(
     ITaskRepository taskRepository,
     IPlannedRecurrenceRepository plannedRecurrenceRepository,
     IDateService dateService,
     ILogger <RecurrenceCreatorService> logger,
     ITaskParserService taskParserService,
     INotifierService notifierService,
     IMapper mapper,
     ISpecificationFactory specFactory)
 {
     _taskRepository = taskRepository;
     _plannedRecurrenceRepository = plannedRecurrenceRepository;
     _dateService       = dateService;
     _logger            = logger;
     _taskParserService = taskParserService;
     _notifierService   = notifierService;
     _mapper            = mapper;
     _specFactory       = specFactory;
 }
Пример #15
0
 public bool Connect(Guid appId,string uriPath)
 {
     _currentAppId = appId;
     try
     {
         NetTcpBinding binding = new NetTcpBinding { Security = { Mode = SecurityMode.None, Transport = { ClientCredentialType = TcpClientCredentialType.None } } };
         _notifierServiceFactory = new DuplexChannelFactory<INotifierService>(new InstanceContext(this), binding, new EndpointAddress(uriPath));
         _notifierServiceProxy = _notifierServiceFactory.CreateChannel();
         _notifierServiceFactory.Faulted += (_, __) =>
         {
             Disconnect(false);
             OnExceptionInService(null, true);
         };
         Connected=_notifierServiceProxy.Subscribe(_currentAppId);
         return Connected;
     }
     catch (Exception ex)
     {
         Disconnect(false);
         OnExceptionInService(ex,true);
         //throw;
     }
     return false;
 }
Пример #16
0
 public RoleController(IRoleService service, INotifierService notifier) : base(service)
 {
 }
Пример #17
0
 public NotifierService(INotifierService notifierService)
 {
     this.notifierService = notifierService;
 }
Пример #18
0
 public NotifierTestParent(INotifierService s)
 {
     N = new Notifier(this, s);
     N.Subscribe();
 }
Пример #19
0
 public NotifierController(INotifierService customerService)
 {
     _customerService = customerService;
 }
Пример #20
0
 public MockSMSService(INotifierService NotifierService)
 {
     _NotifierService = NotifierService;
 }
Пример #21
0
 public NotificationJob(IServiceProvider serviceProvider)
 {
     using var scope      = serviceProvider.CreateScope();
     _notifierService     = scope.ServiceProvider.GetService <INotifierService>();
     _notificationService = scope.ServiceProvider.GetService <INotificationService>();
 }
Пример #22
0
 public MockSMSService(INotifierService NotifierService)
  {
      _NotifierService = NotifierService;
  }
Пример #23
0
 public InventoryService(MicroManageContext context, INotifierService notifierService, IAuditService auditService, IProductService productService) {
     this.Context = context;
     this.NotifierService = notifierService;
     this.AuditService = auditService;
     this.ProductService = productService;
 }
Пример #24
0
 public ControlAccessController(IService <TEntity> service)
 {
     this.Service = service;
     notifier     = DependencyResolver.Current.GetService <INotifierService>();
 }
 public static void Warning(this INotifierService notifier, string text, params object[] format)
 {
     notifier.AddMessage(MessageSeverity.Warning, text, format);
 }
 public static void Error(this INotifierService notifier, string text, params object[] format)
 {
     notifier.AddMessage(MessageSeverity.Danger, text, format);
 }
 public NotifierController(INotifierService notifierService)
 {
     _notifierService = notifierService;
 }
Пример #28
0
 public HomeController(ILogger <HomeController> logger, IMediator mediator, INotifierService notifierService)
 {
     Logger          = logger;
     Mediator        = mediator;
     NotifierService = notifierService;
 }
Пример #29
0
 public QuoteService(HttpClient httpClient, INotifierService notifier)
 {
     _httpClient = httpClient;
     _notifier   = notifier;
 }
Пример #30
0
 public OrderPaidDomainEventHandler(ISuitAlterationRepository suitAlterationRepository, INotifierService notifierService)
 {
     _suitAlterationRepository = suitAlterationRepository;
     _notifierService          = notifierService;
 }
Пример #31
0
 public OrderPlacedDomainEventHandler(INotifierService notifierService)
 {
     _notifierService = notifierService;
 }
Пример #32
0
 public Worker(INotifierService notifierService)
 {
     _notifierService = notifierService;
 }
Пример #33
0
 public WheelOfFateService(ITeamRepository engineerRepository, INotifierService notifierService)
 {
     this.engineerRepository = engineerRepository;
     this.notifierService    = notifierService;
 }