예제 #1
0
        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();
        }
예제 #2
0
        public override void Configure(IFunctionsHostBuilder builder)
        {
            builder.AddAppSettingsToConfiguration();

            builder.AddTableStorageOptions();
            builder.RegisterTableStorageServices();

            builder.Services.AddTransient <IValidator <CreateCategoryHttpRequest>, CreateCategoryHttpRequestValidator>();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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
        }
예제 #5
0
        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();
        }
예제 #6
0
        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();
        }
예제 #7
0
 public override void Configure(IFunctionsHostBuilder builder)
 {
     builder.AddAppSettingsToConfiguration();
     builder.Services.TryAddTransient <IGeometryFetcher, GeometryFetcher>();
     builder.Services.TryAddTransient <IResultSaver, ResultSaver>();
 }