public EventSourceClient(ISplitLogger log = null,
                                 INotificationParser notificationParser = null,
                                 IWrapperAdapter wrapperAdapter         = null)
        {
            _log = log ?? WrapperAdapter.GetLogger(typeof(EventSourceClient));
            _notificationParser = notificationParser ?? new NotificationParser();
            _wrapperAdapter     = wrapperAdapter ?? new WrapperAdapter();

            UpdateFinishedConnection(finished: true);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of <see cref="TextMessageProcessor"/>
 /// </summary>
 /// <param name="dataCollectors"><see cref="IDataCollectors"/></param>
 /// <param name="healthRisks"><see cref="IHealthRisks"/></param>
 /// <param name="textMessageParser"><see cref="ITextMessageContentParser"/></param>
 /// <param name="caseReportingRepository"><see cref="IAggregateRootRepository<CaseReporting>"/></param>
 public NotificationProcessor(
     IDataCollectors dataCollectors,
     IHealthRisks healthRisks,
     INotificationParser textMessageParser,
     IAggregateRootRepositoryFor <CaseReporting> caseReportingRepository)
 {
     _dataCollectors          = dataCollectors;
     _healthRisks             = healthRisks;
     _textMessageParser       = textMessageParser;
     _caseReportingRepository = caseReportingRepository;
 }
示例#3
0
 public NotificationProcessor(
     ICommandContextManager commandContextManager,
     IReadModelRepositoryFor <DataCollector> dataCollectors,
     IReadModelRepositoryFor <HealthRisk> healthRisks,
     INotificationParser textMessageParser,
     IAggregateRootRepositoryFor <CaseReporting> caseReportingRepository)
 {
     _commandContextManager   = commandContextManager;
     _dataCollectors          = dataCollectors;
     _healthRisks             = healthRisks;
     _textMessageParser       = textMessageParser;
     _caseReportingRepository = caseReportingRepository;
 }
示例#4
0
        public EventSourceClient(INotificationParser notificationParser,
                                 IWrapperAdapter wrapperAdapter,
                                 ISplitioHttpClient splitHttpClient,
                                 ITelemetryRuntimeProducer telemetryRuntimeProducer,
                                 ITasksManager tasksManager,
                                 ISplitLogger log = null)
        {
            _notificationParser = notificationParser;
            _wrapperAdapter     = wrapperAdapter;
            _splitHttpClient    = splitHttpClient;
            _log = log ?? WrapperAdapter.GetLogger(typeof(EventSourceClient));
            _telemetryRuntimeProducer = telemetryRuntimeProducer;
            _tasksManager             = tasksManager;

            _firstEvent = true;
        }
 public NotificationParserTests()
 {
     _notificationParser = new NotificationParser();
 }