2018-10-05 06:39:39 +00:00
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
2018-10-14 14:15:27 +00:00
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2018-10-05 06:39:39 +00:00
|
|
|
|
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>
|
2018-10-14 14:15:27 +00:00
|
|
|
|
void Configure(IApplicationBuilder app, IHostingEnvironment env);
|
2018-10-05 06:39:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|