forked from SciSharp/BotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIModule.cs
More file actions
33 lines (31 loc) · 1.01 KB
/
IModule.cs
File metadata and controls
33 lines (31 loc) · 1.01 KB
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
33
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace BotSharp.Core.Modules
{
/// <summary>
/// Represents a configurable module containing multiple servies.
/// </summary>
public interface IModule
{
/// <summary>
/// Configurates the module services.
/// </summary>
/// <param name="services">
/// Instance of <see cref="IServiceCollection"/>.
/// </param>
/// <returns>
/// Instance of <see cref="IServiceProvider"/>.
/// </returns>
void ConfigureServices(IServiceCollection services, IConfiguration configuration);
/// <summary>
/// Configures module services.
/// </summary>
/// <param name="app">
/// Instance of <see cref="IApplicationBuilder"/>.
/// </param>
void Configure(IApplicationBuilder app, IWebHostEnvironment env);
}
}