Skip to content

Instantly share code, notes, and snippets.

@asizikov
Last active July 10, 2020 09:37
Show Gist options
  • Save asizikov/4ca721ce2e96ba1663f2c63fcbc50e0a to your computer and use it in GitHub Desktop.
Save asizikov/4ca721ce2e96ba1663f2c63fcbc50e0a to your computer and use it in GitHub Desktop.
using DockerizedFunc.FunctionApp;
using DockerizedFunc.Dependency;
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
[assembly: FunctionsStartup(typeof(Startup))]
namespace DockerizedFunc.FunctionApp
{
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddSingleton<IAsyncGreeter, AsyncGreeter>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment