Skip to content

Instantly share code, notes, and snippets.

@0x414c49
Created February 4, 2020 13:04
Show Gist options
  • Save 0x414c49/0fe30e864933f133343ebc7f12533443 to your computer and use it in GitHub Desktop.
Save 0x414c49/0fe30e864933f133343ebc7f12533443 to your computer and use it in GitHub Desktop.
Azure Startup
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
[assembly: FunctionsStartup(typeof(azure_functions_ioc.Startup))]
namespace azure_functions_ioc
{
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
// builder.Services.AddHttpClient();
// builder.Services.AddSingleton((s) => {
// return new MyService();
// });
// builder.Services.AddSingleton<ILoggerProvider, MyLoggerProvider>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment