begin new and last rework
This commit is contained in:
11
OwnChar.Server/Api/Plugins/ApiEndpointFeature.cs
Normal file
11
OwnChar.Server/Api/Plugins/ApiEndpointFeature.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using OwnChar.ServerNew.Api.Endpoint;
|
||||
using Pilz.Plugins.Advanced;
|
||||
|
||||
namespace OwnChar.ServerNew.Api.Plugins;
|
||||
|
||||
public abstract class ApiEndpointFeature(string identifier) : PluginFeature(FeatureType, identifier), IApiEndpoint
|
||||
{
|
||||
public static string FeatureType => "ownchar.server.apiep";
|
||||
|
||||
public abstract void Initialize(IApiBuilder builder);
|
||||
}
|
||||
5
OwnChar.Server/Api/Plugins/IPluginLoadContextServer.cs
Normal file
5
OwnChar.Server/Api/Plugins/IPluginLoadContextServer.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace OwnChar.ServerNew.Api.Plugins;
|
||||
|
||||
public interface IPluginLoadContextServer
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using OwnChar.Plugins;
|
||||
|
||||
namespace OwnChar.ServerNew.Api.Plugins;
|
||||
|
||||
public class OwnCharServerPluginInitParams(IServer server) : OwnCharPluginInitParams
|
||||
{
|
||||
public IServer Server { get; } = server;
|
||||
}
|
||||
Reference in New Issue
Block a user