Skip to content

Instantly share code, notes, and snippets.

@msajid
Created May 11, 2019 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msajid/6cacdee3e13b0aa8858c6db6a61baa99 to your computer and use it in GitHub Desktop.
Save msajid/6cacdee3e13b0aa8858c6db6a61baa99 to your computer and use it in GitHub Desktop.
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
[assembly: FunctionsStartup(typeof(AzureFunctionAppWithDIAndScrutor.Startup))]
namespace AzureFunctionAppWithDIAndScrutor
{
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddSingleton<ISomeService, SomeService>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment