-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStartup.cs
32 lines (26 loc) · 1006 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
27
28
29
30
31
32
using Lambdajection.Core;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Lambdajection.Examples.EncryptedOptions
{
public class Startup : ILambdaStartup
{
public IConfiguration Configuration { get; }
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public void ConfigureServices(IServiceCollection services)
{
// You can add your own decryption service here. The default decryption service uses KMS to decrypt values.
// During testing, you can replace this value with a substitute:
// var decryptionService = Substitute.For<IDecryptionService>();
// services.AddSingleton(decryptionService);
}
public void ConfigureLogging(ILoggingBuilder logging)
{
logging.AddFilter("Lambdajection", LogLevel.Information);
}
}
}