Class TrinityManager
TrinityManager is responsible for Loading all the Trinity Resources,Pages and plugins
public class TrinityManager
- Inheritance
-
TrinityManager
- Inherited Members
Constructors
TrinityManager(TrinityConfigurations, IServiceCollection, TrinityLocalizer)
Creating a new instance of TrinityManager.
public TrinityManager(TrinityConfigurations configurations, IServiceCollection serviceProvider, TrinityLocalizer trinityLocalizer)
Parameters
configurations
TrinityConfigurationsThe singleton of TrinityConfigurations registered in the app.
serviceProvider
IServiceCollectionThe current IServiceCollection.
trinityLocalizer
TrinityLocalizerThe singleton of TrinityLocalizer registered in the app.
Properties
Pages
A Dictionary of the registered/loaded TrinityPage.
public Dictionary<string, Type> Pages { get; }
Property Value
Resources
A Dictionary of the registered/loaded ITrinityResource.
public Dictionary<string, Type> Resources { get; }
Property Value
Methods
Init()
Initialize Trinity by loading all the TrinityPages , ITrinityResources and TrinityPlugins .
public void Init()
LoadPlugins(WebApplication)
public void LoadPlugins(WebApplication app)
Parameters
app
WebApplication