14 lines
422 B
C#
14 lines
422 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace MAX.Plugins;
|
|
|
|
/// <summary>独立插件入口。实现类必须具有无参构造函数。</summary>
|
|
public interface IPlugin
|
|
{
|
|
string Id { get; }
|
|
int Priority { get; }
|
|
void ConfigureServices(IServiceCollection services, PluginContext context);
|
|
void Configure(IApplicationBuilder app, PluginContext context);
|
|
}
|