public void Configure(IApplicationBuilder appBuilder) { var serviceProvider = appBuilder.ApplicationServices; IRebusService rebusService = serviceProvider.GetService <IRebusService>(); rebusService.Start(_connectionString); _bus = rebusService.GetBus(); }
public OuterResourceService(OuterInnerResourcePnDbContext dbContext, IOuterInnerResourceLocalizationService localizationService, ILogger <OuterResourceService> logger, IRebusService rebusService) { _dbContext = dbContext; _localizationService = localizationService; _logger = logger; _bus = rebusService.GetBus(); }
public OuterInnerResourceSettingsService( ILogger <OuterInnerResourceSettingsService> logger, OuterInnerResourcePnDbContext dbContext, IOuterInnerResourceLocalizationService outerInnerResourceLocalizationService, IPluginDbOptions <OuterInnerResourceSettings> options, IRebusService rebusService, IUserService userService) { _logger = logger; _dbContext = dbContext; _outerInnerResourceLocalizationService = outerInnerResourceLocalizationService; _options = options; _bus = rebusService.GetBus(); _userService = userService; }
public TrashInspectionService(ILogger <TrashInspectionService> logger, TrashInspectionPnDbContext dbContext, IEFormCoreService coreHelper, IUserService userService, ITrashInspectionLocalizationService trashInspectionLocalizationService, IPluginDbOptions <TrashInspectionBaseSettings> options, IRebusService rebusService) { _logger = logger; _dbContext = dbContext; _coreHelper = coreHelper; _trashInspectionLocalizationService = trashInspectionLocalizationService; _userService = userService; _bus = rebusService.GetBus(); _options = options; }
public WorkOrdersSettingsService(WorkOrderPnDbContext dbContext, ILogger <WorkOrdersSettingsService> logger, IWorkOrdersLocalizationService workOrdersLocalizationService, IEFormCoreService core, IPluginDbOptions <WorkOrdersBaseSettings> options, IUserService userService, IRebusService rebusService) { _dbContext = dbContext; _logger = logger; _workOrdersLocalizationService = workOrdersLocalizationService; _core = core; _options = options; _userService = userService; _rebusService = rebusService; _bus = _rebusService.GetBus(); }
public ItemListCaseService( ItemsGroupPlanningPnDbContext dbContext, IUserService userService, IItemsPlanningLocalizationService itemsPlanningLocalizationService, IExcelService excelService, IHttpContextAccessor httpContextAccessor, IEFormCoreService core, IRebusService rebusService) { _dbContext = dbContext; _itemsPlanningLocalizationService = itemsPlanningLocalizationService; _httpContextAccessor = httpContextAccessor; _core = core; _userService = userService; _excelService = excelService; _rebusService = rebusService; _bus = rebusService.GetBus(); }
public void Configure(IApplicationBuilder appBuilder) { appBuilder.UseHttpsRedirection(); appBuilder.UseRouting(); string rabbitMqHost = "localhost"; if (_connectionString.Contains("frontend")) { var dbPrefix = Regex.Match(_connectionString, @"atabase=(\d*)_").Groups[1].Value; rabbitMqHost = $"frontend-{dbPrefix}-rabbitmq"; } IServiceProvider serviceProvider = appBuilder.ApplicationServices; IRebusService rebusService = serviceProvider.GetService <IRebusService>(); rebusService.Start(_connectionString, "admin", "password", rabbitMqHost); _bus = rebusService.GetBus(); appBuilder.UseAuthorization(); appBuilder.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }