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); }
/// <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; }
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; }
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(); }