public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddLogging(options => { options.AddFilter("Upskill", LogLevel.Information); options.AddFilter("Application", LogLevel.Information); }); builder.Services.AddAutoMapper( typeof(CreateApplicationCommandToCreateApplicationProcessStartedEventProfile).Assembly, typeof(CreateApplicationProcessStartedEventToApplicationDtoProfile).Assembly, typeof(CandidateDtoToCandidateProfile).Assembly, typeof(SearchableApplicationToApplicationDtoProfile).Assembly); builder.Services.AddTransient <IValidator <SimpleApplicationSearchHttpRequest>, SimpleApplicationSearchHttpRequestValidator>(); builder.AddTelemetryLogging(); builder.AddRealTimeNotifications(); builder.AddAppSettingsToConfiguration(); builder.AddCoreModule(); builder.AddRequestMappersModule(); builder.AddInfrastructureModule(); builder.AddCommandsModule(); builder.AddStorageModule(); builder.AddProcessStatusModule(); builder.AddSearchModule(); builder.AddCategories(); builder.AddEvents(); builder.AddPushNotifications(); builder.AddLogChecker(); }
public override void Configure(IFunctionsHostBuilder builder) { builder.AddAppSettingsToConfiguration(); builder.AddTableStorageOptions(); builder.RegisterTableStorageServices(); builder.Services.AddTransient <IValidator <CreateCategoryHttpRequest>, CreateCategoryHttpRequestValidator>(); }
public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddTransient <IValidator <CreateCategoryHttpRequest>, CreateCategoryHttpRequestValidator>(); builder.Services.AddTransient <IValidator <UpdateCategoryCommand>, UpdateCategoryCommandValidator>(); builder.AddAppSettingsToConfiguration(); builder.AddDataStorageModule(); builder.AddStorageModule(); builder.AddInfrastructureModule(); builder.AddEventPublisher(); }
public override void Configure(IFunctionsHostBuilder builder) { builder.AddAppSettingsToConfiguration(); // Initialise any common services CQRSAzureBindings.InitializeServices(builder.Services); // Initialise any outbound notifications NotificationDispatcherFactory.CreateDispatcher(builder.Services); // Initialise any inbound listeners }
public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddAutoMapper( typeof(SaveApplicationCommandToApplicationProfile).Assembly, typeof(SaveApplicationCommandToApplicationProfile).Assembly, typeof(CandidateDtoToCandidateProfile).Assembly, typeof(SearchableApplicationToApplicationDtoProfile).Assembly); builder.Services.AddTransient <IValidator <SimpleApplicationSearchHttpRequest>, SimpleApplicationSearchHttpRequestValidator>(); builder.AddAppSettingsToConfiguration(); builder.AddRequestMappersModule(); builder.AddInfrastructureModule(); builder.AddCommandsModule(); builder.AddStorageModule(); builder.AddDataStorageModule(); builder.AddProcessStatusModule(); builder.AddSearchModule(); builder.AddCategories(); builder.AddEventPublisher(); builder.AddPushNotifications(); }
public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddLogging(options => { options.AddFilter("Upskill", LogLevel.Information); options.AddFilter("Category", LogLevel.Information); }); builder.Services.AddTransient <IValidator <CreateCategoryHttpRequest>, CreateCategoryHttpRequestValidator>(); builder.Services.AddTransient <IValidator <UpdateCategoryCommand>, UpdateCategoryCommandValidator>(); builder.Services.AddTransient <IValidator <GetCategoriesHttpRequest>, GetCategoriesHttpRequestValidator>(); builder.AddRealTimeNotifications(); builder.AddCoreModule(); builder.AddSearchModule(); builder.AddAppSettingsToConfiguration(); builder.AddStorageModule(); builder.AddInfrastructureModule(); builder.AddEvents(); builder.AddLogChecker(); builder.AddTelemetryLogging(); }
public override void Configure(IFunctionsHostBuilder builder) { builder.AddAppSettingsToConfiguration(); builder.Services.TryAddTransient <IGeometryFetcher, GeometryFetcher>(); builder.Services.TryAddTransient <IResultSaver, ResultSaver>(); }