Created
February 4, 2020 13:04
-
-
Save 0x414c49/0fe30e864933f133343ebc7f12533443 to your computer and use it in GitHub Desktop.
Azure Startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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