Instantly share code, notes, and snippets.

@akki-s akki-s/Bootstrap.cs
Created Oct 31, 2018

Embed
What would you like to do?
using Azure.Functions.v2.DI.Helpers;
using Azure.Functions.v2.DI.Services;
using Microsoft.Extensions.DependencyInjection;
using System;
using Microsoft.Extensions.Logging;
namespace Azure.Functions.v2.DI.FunctionApp
{
public static class Bootstrap
{
public static IServiceProvider ConfigureServices()
{
var services = new ServiceCollection()
.AddTransient<ITimeZoneService, TimeZoneService>()
.AddTransient<IAzureBlobStorageHelper, AzureBlobStorageHelper>();
return services.BuildServiceProvider();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment