Files
mixtape/zero.Core/Architecture/Plugins/IZeroPlugin.cs
T

25 lines
815 B
C#
Raw Normal View History

2021-12-12 15:41:51 +01:00
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Configuration;
2021-11-20 13:52:28 +01:00
using Microsoft.Extensions.DependencyInjection;
namespace zero.Architecture;
public abstract class ZeroPlugin : IZeroPlugin
{
public IZeroPluginOptions Options { get; } = new ZeroPluginOptions();
public virtual void ConfigureServices(IServiceCollection services, IConfiguration configuration) { }
2021-12-12 15:41:51 +01:00
public virtual void Configure(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider) { }
2021-11-20 13:52:28 +01:00
}
public interface IZeroPlugin
{
IZeroPluginOptions Options { get; }
void ConfigureServices(IServiceCollection services, IConfiguration configuration);
2021-12-12 15:41:51 +01:00
void Configure(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider);
2021-11-20 13:52:28 +01:00
}