public ConversionRunner(ILoggerFactory loggerFactory, IEventStore eventSTore, GeoDatabaseSetting geoDatabaseSettings, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
        {
            _loggerFactory      = loggerFactory;
            _eventStore         = eventSTore;
            _geoDatabaseSetting = geoDatabaseSettings;
            _commandDispatcher  = commandDispatcher;
            _queryDispatcher    = queryDispatcher;

            _logger = loggerFactory.CreateLogger <ConversionRunner>();
        }
        public RouteNetworkEventConsumer(ILoggerFactory loggerFactory, IEventStore eventStore, IOptions <KafkaSetting> kafkaSetting, IOptions <EventStoreDatabaseSetting> eventStoreDatabaseSetting, IOptions <GeoDatabaseSetting> geoDatabaseSetting, IToposTypedEventObservable <RouteNetworkEditOperationOccuredEvent> eventDispatcher, RouteNetworkEventHandler routeNetworkEventHandler, IRouteNetworkState routeNetworkState, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
        {
            _loggerFactory             = loggerFactory;
            _logger                    = _loggerFactory.CreateLogger <RouteNetworkEventConsumer>();
            _eventStore                = eventStore;
            _kafkaSetting              = kafkaSetting.Value;
            _eventStoreDatabaseSetting = eventStoreDatabaseSetting.Value;
            _geoDatabaseSetting        = geoDatabaseSetting.Value;

            _commandDispatcher = commandDispatcher;
            _queryDispatcher   = queryDispatcher;

            _eventDispatcher          = eventDispatcher;
            _routeNetworkEventHandler = routeNetworkEventHandler;
            _routeNetworkState        = routeNetworkState;
        }
Ejemplo n.º 3
0
        public TerminalEquipmentImporter(ILogger <TerminalEquipmentImporter> logger, Guid workTaskId, IEventStore eventSTore, GeoDatabaseSetting geoDatabaseSettings, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(geoDatabaseSettings)
        {
            _logger            = logger;
            _workTaskId        = workTaskId;
            _eventStore        = eventSTore;
            _commandDispatcher = commandDispatcher;
            _queryDispatcher   = queryDispatcher;

            _utilityNetwork = _eventStore.Projections.Get <UtilityNetworkProjection>();
        }
Ejemplo n.º 4
0
 public ConnectivityImporter(ILogger <ConnectivityImporter> logger, Guid workTaskId, IEventStore eventSTore, GeoDatabaseSetting geoDatabaseSettings, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(geoDatabaseSettings)
 {
     _logger            = logger;
     _workTaskId        = workTaskId;
     _eventStore        = eventSTore;
     _commandDispatcher = commandDispatcher;
     _queryDispatcher   = queryDispatcher;
 }
 public ImporterBase(GeoDatabaseSetting geoDatabaseSetting)
 {
     _geoDatabaseSetting = geoDatabaseSetting;
 }
Ejemplo n.º 6
0
 public CableSpanEquipmentImporter(ILogger <ConduitSpanEquipmentImporter> logger, IEventStore eventSTore, GeoDatabaseSetting geoDatabaseSettings, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(geoDatabaseSettings)
 {
     _logger                      = logger;
     _eventStore                  = eventSTore;
     _commandDispatcher           = commandDispatcher;
     _queryDispatcher             = queryDispatcher;
     _utilityNetwork              = _eventStore.Projections.Get <UtilityNetworkProjection>();
     _spanEquipmentSpecifications = _eventStore.Projections.Get <SpanEquipmentSpecificationsProjection>().Specifications;
 }
 public ConduitSpanEquipmentImporter(ILogger <ConduitSpanEquipmentImporter> logger, IEventStore eventSTore, GeoDatabaseSetting geoDatabaseSettings, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(geoDatabaseSettings)
 {
     _logger            = logger;
     _eventStore        = eventSTore;
     _commandDispatcher = commandDispatcher;
     _queryDispatcher   = queryDispatcher;
 }