Skip to content

Instantly share code, notes, and snippets.

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