Table of Contents

Class TrinityManager

Namespace
AbanoubNassem.Trinity.Managers
Assembly
AbanoubNassem.Trinity.dll

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 TrinityConfigurations

The singleton of TrinityConfigurations registered in the app.

serviceProvider IServiceCollection

The current IServiceCollection.

trinityLocalizer TrinityLocalizer

The singleton of TrinityLocalizer registered in the app.

Properties

Pages

A Dictionary of the registered/loaded TrinityPage.

public Dictionary<string, Type> Pages { get; }

Property Value

Dictionary<string, Type>

Resources

A Dictionary of the registered/loaded ITrinityResource.

public Dictionary<string, Type> Resources { get; }

Property Value

Dictionary<string, Type>

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