public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddHttpClient(); var functionsAppShim = new FunctionsAppShim <webApp_urlshortener.Startup> { LoadConfigurationsDelegate = webApp_urlshortener.Program.LoadConfigurations }; builder.Services.AddSingleton <IFunctionsAppShim>(functionsAppShim); }
public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddHttpClient(); builder.Services.AddSerializer(); var functionsAppShim = new FunctionsAppShim <WebApplication_Startup_Logging.Startup> { LoadConfigurationsDelegate = WebApplication_Startup_Logging.Program.LoadConfigurations }; builder.Services.AddSingleton <IFunctionsAppShim>(functionsAppShim); }