Created
October 31, 2018 03:11
-
-
Save akki-s/fb78c62b7fc6adc3fc8f23058c0dede4 to your computer and use it in GitHub Desktop.
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 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