23 lines
603 B
C#
23 lines
603 B
C#
using Microsoft.Extensions.Configuration;
|
|
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) { }
|
|
|
|
public virtual void Configure(IZeroOptions zero) { }
|
|
}
|
|
|
|
|
|
public interface IZeroPlugin
|
|
{
|
|
IZeroPluginOptions Options { get; }
|
|
|
|
void ConfigureServices(IServiceCollection services, IConfiguration configuration);
|
|
|
|
void Configure(IZeroOptions zero);
|
|
} |