public HomeController() { _dbContext = new TicketOnlineContext(); cache = new Cache(); _cloudContext = new CloudContext(cache); _orderService = new OrderOrchestratorService(_dbContext, _cloudContext); _eventService = new EventManagementService(_dbContext, _cloudContext); }
public OrderOrchestratorService(TicketOnlineContext dbContext, CloudContext azureContext) { _bdContext = dbContext; cloud_bdContext = azureContext; if (_circuitBreaker == null) { _circuitBreaker = new CircuitBreaker(); } }
public EventManagementService(TicketOnlineContext dbContext, CloudContext azureContext) { _dbContext = dbContext; _cloudContext = azureContext; }