-
Notifications
You must be signed in to change notification settings - Fork 4
/
Startup.cs
28 lines (26 loc) · 917 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
// MIT License
// Copyright DNN Community
using Dnn.Modules.SecurityCenter.Services;
using DotNetNuke.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System.Diagnostics.CodeAnalysis;
namespace Dnn.Modules.SecurityCenter
{
/// <summary>
/// Implements the IDnnStartup interface to run at application start.
/// </summary>
[ExcludeFromCodeCoverage]
public class Startup : IDnnStartup
{
/// <summary>
/// Registers the dependencies for injection.
/// </summary>
/// <param name="services">The services collection.</param>
public void ConfigureServices(IServiceCollection services)
{
services.AddScoped<ILoggingService, LoggingService>();
services.AddScoped<ILocalizationService, LocalizationService>();
services.AddSingleton<ISecurityService, SecurityService>();
}
}
}