-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Startup.cs
26 lines (22 loc) · 869 Bytes
/
Startup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using AzUnzipEverything;
using AzUnzipEverything.Extensions;
using Microsoft.Azure.Functions.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
using System;
[assembly: FunctionsStartup(typeof(Startup))]
namespace AzUnzipEverything
{
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
var configurationBuilder = new ConfigurationBuilder()
.SetBasePath(Environment.CurrentDirectory)
.AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables();
builder.Services.AddAzureKeyVaultConfiguration(configurationBuilder);
builder.Services.AddBlobStorage();
builder.Services.AddSupportedArchiveTypes();
}
}
}