forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPlugin.cs
More file actions
39 lines (35 loc) · 1.15 KB
/
IPlugin.cs
File metadata and controls
39 lines (35 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
namespace ServiceStack
{
/// <summary>
/// Callback for Plugins to register necessary handlers with ServiceStack
/// </summary>
public interface IPlugin
{
void Register(IAppHost appHost);
}
/// <summary>
/// Callback to pre-configure any logic before IPlugin.Register() is fired
/// </summary>
public interface IPreInitPlugin
{
void Configure(IAppHost appHost);
}
/// <summary>
/// Callback to post-configure any logic after IPlugin.Register() is fired
/// </summary>
public interface IPostInitPlugin
{
void AfterPluginsLoaded(IAppHost appHost);
}
/// <summary>
/// Callback for AuthProviders to register callbacks with AuthFeature
/// </summary>
public interface IAuthPlugin
{
void Register(IAppHost appHost, AuthFeature feature);
}
public interface IProtoBufPlugin { } //Marker for ProtoBuf plugin
public interface IMsgPackPlugin { } //Marker for MsgPack plugin
public interface INetSerializerPlugin { } //Marker for NetSerialize plugin
public interface IRazorPlugin { } //Marker for MVC Razor plugin
}