public static IWebHostBuilder UseFunctionsStartups()

in src/Google.Cloud.Functions.Hosting/Extensions/FunctionsFrameworkWebHostBuilderExtensions.cs [47:55]


        public static IWebHostBuilder UseFunctionsStartups(this IWebHostBuilder webHostBuilder, Assembly assembly, Type? functionType)
        {
            foreach (var startupClass in FunctionsStartupAttribute.GetStartupTypes(assembly, functionType))
            {
                var startup = (FunctionsStartup) Activator.CreateInstance(startupClass)!;
                webHostBuilder.UseFunctionsStartup(startup);
            }
            return webHostBuilder;
        }