Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 992 Bytes
using GeoRedundant.FunctionApp.Configs;
using GeoRedundant.FunctionApp.Services;
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
[assembly: FunctionsStartup(typeof(GeoRedundant.FunctionApp.StartUp))]
namespace GeoRedundant.FunctionApp
{
/// <summary>
/// This represents the entity that defines dependencies.
/// </summary>
public class StartUp : FunctionsStartup
{
/// <inheritdoc />
public override void Configure(IFunctionsHostBuilder builder)
{
this.ConfigureAppSettings(builder.Services);
this.ConfigureServices(builder.Services);
}
private void ConfigureAppSettings(IServiceCollection services)
{
services.AddSingleton<AppSettings>();
}
private void ConfigureServices(IServiceCollection services)
{
services.AddTransient<IMessageService, MessageService>();
}
}
}
You can’t perform that action at this time.