public ReportSpoilageHandler(IEntityRepository repository, IInventoryService inventoryService, IEventTransmitter eventTransmitter) { _repository = repository; _inventoryService = inventoryService; _eventTransmitter = eventTransmitter; }
public ArchiveArticleHandler(IEntityRepository repository, IInventoryRepository inventoryRepo, IEventTransmitter eventTransmitter) { _inventoryRepo = inventoryRepo; _repository = repository; _eventTransmitter = eventTransmitter; }
public EnactOrderHandler(IEntityRepository repository, IInventoryService inventoryService, IEventTransmitter eventTransmitter) { _repository = repository; _inventoryService = inventoryService; _eventTransmitter = eventTransmitter; }
public TransferInventoryHandler(IInventoryService inventoryService, IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _inventoryService = inventoryService; _eventTransmitter = eventTransmitter; }
public GrantPermissionHandler(IEntityRepository repository, IPermissionRepository permissionRepo, IEventTransmitter eventTransmitter) { _repository = repository; _permissionRepo = permissionRepo; _eventTransmitter = eventTransmitter; }
public CreateSubOrdersHandler(IEntityRepository repository, IInventoryRepository inventoryRepo, IOrderService orderService, IEventTransmitter eventTransmitter) { _repository = repository; _orderService = orderService; _inventoryRepo = inventoryRepo; _eventTransmitter = eventTransmitter; }
public ProduceInventoryItemHandler(IEntityRepository repository, IInventoryService inventoryService, IOrderService orderService, IEventTransmitter eventTransmitter) { _repository = repository; _inventoryService = inventoryService; _orderService = orderService; _eventTransmitter = eventTransmitter; }
public ReceiveMaterialsHandler(IEntityRepository repository, IShopRepository shopRepo, IInventoryService inventoryService, IEventTransmitter eventTransmitter) { _repository = repository; _shopRepo = shopRepo; _inventoryService = inventoryService; _eventTransmitter = eventTransmitter; }
public ArchiveSupplierHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public SetSupplierPrimaryContactHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public SetDefaultShopForCategoryHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public CreateMaterialRequestHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public ArchiveContactHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public ChangeSupplierContactHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public AddBillOfMaterialHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public ChangeShopManagerHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public RevokePermissionHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public RemoveArticleFromSuppliableHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public ChangeCustomerTypeHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public DisallowArticleHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public RegisterArticleHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
private async Task MakeOneCarDrive(Random random, TrafficSegmentConfiguration trafficConfiguration, TrafficSegmentSituation segmentSituation, IEventTransmitter startCameraEventTransmitter, IEventTransmitter endCameraEventTransmitter, CancellationToken cancellationToken) { // Wait random short interval to add randomness await Task.Delay(TimeSpan.FromMilliseconds(random.Next(2000)), cancellationToken); var car = SimulatedCar.Randomize ( random, segmentSituation ); try { //regenerate new license plate for every run var carTimespan = car.CalculateTime(trafficConfiguration.CameraDistance, _simulationSettings.TimeSimulationAccelerator); await startCameraEventTransmitter.Transmit( new CameraEvent { TrajectId = trafficConfiguration.SegmentId, CameraId = CameraType.Camera1.ToString(), EventTime = SimulatedClock.Time, Car = car, Lane = LaneCalculator.CalculateLane(trafficConfiguration, segmentSituation, car) }, cancellationToken); _logger.Trace($"{car.Color} {car.Make} with license plate {car.LicensePlate} detected by camera 01 (limit {segmentSituation.SpeedLimit})"); await Task.Delay(carTimespan, cancellationToken); await endCameraEventTransmitter.Transmit( new CameraEvent { TrajectId = trafficConfiguration.SegmentId, CameraId = CameraType.Camera2.ToString(), EventTime = SimulatedClock.Time, Car = car, Lane = LaneCalculator.CalculateLane(trafficConfiguration, segmentSituation, car) }, cancellationToken); _logger.Trace($"{car.Color} {car.Make} with license plate {car.LicensePlate} detected by camera 02 (limit {segmentSituation.SpeedLimit})"); } catch (TaskCanceledException) { } catch (Exception ex) { _logger.Error(ex, "Error happened in one of the simulation threads"); } }
public RegisterCustomerHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public CreateUserHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public ArchiveShopCategoryHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public ChangeUserDataHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }
public AddArticleToSuppliableHandler(IEntityRepository repository, IEventTransmitter eventTransmitter) { _repository = repository; _eventTransmitter = eventTransmitter; }