Ejemplo n.º 1
0
        public static IIntegrationHostBuilder UseAppInsights(this IIntegrationHostBuilder integrationHostBuilder, Action <AppInsightsConfig> configureDelegate)
        {
            integrationHostBuilder.ConfigureServices(y => y.AddAppInsights(configureDelegate));
            integrationHostBuilder.StartupHandler.PostConfigureActions += StartupHandler_PostConfigureActions;

            return(integrationHostBuilder);
        }
        public static IIntegrationHostBuilder UseHangfire(this IIntegrationHostBuilder integrationHostBuilder)
        {
            integrationHostBuilder.ConfigureServices(y => y.AddHangfire());

            return(integrationHostBuilder);
        }
        public static IIntegrationHostBuilder UseHangfire(this IIntegrationHostBuilder integrationHostBuilder, Action <IGlobalConfiguration, HangfireConfig> configureDelegate)
        {
            integrationHostBuilder.ConfigureServices(y => y.AddHangfire(configureDelegate));

            return(integrationHostBuilder);
        }
Ejemplo n.º 4
0
        public static IIntegrationHostBuilder UseAspNetCore(this IIntegrationHostBuilder integrationHostBuilder, Action <AspNetCoreConfig> configureDelegate)
        {
            integrationHostBuilder.ConfigureServices(y => y.AddAspNetCore(configureDelegate));

            return(integrationHostBuilder);
        }