CustomPlugin
Allow custom AppHost registrations to run at different plugin lifecycle events
Assembly: ServiceStack.dll
View Source
Declaration
public class CustomPlugin : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin, IPostInitPlugin
Properties
Id
View Source
Declaration
public string Id { get; set; }
OnRegister
View Source
Declaration
public Action<IAppHost> OnRegister { get; set; }
OnBeforePluginsLoaded
View Source
Declaration
public Action<IAppHost> OnBeforePluginsLoaded { get; set; }
OnAfterPluginsLoaded
View Source
Declaration
public Action<IAppHost> OnAfterPluginsLoaded { get; set; }
Methods
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
BeforePluginsLoaded(IAppHost)
View Source
Declaration
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
AfterPluginsLoaded(IAppHost)
View Source
Declaration
public void AfterPluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |