C# Class Nexus.Client.Bootstrapper

This class is responsible for creating all the services the application needs, and making sure that the environment is sane.
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
Bootstrapper ( EnvironmentInfo p_eifEnvironmentInfo ) : System

A simple constructor that initializes the object with the given values.

RunMainForm ( string p_strArgs ) : bool

Runs the applications

This method makes sure the environment is sane. If so, it creates the required services and launches the main form.

Méthodes protégées

Méthode Description
DisposeServices ( ServiceManager p_smgServices ) : void

This disposes of the services we created.

GetInstalledGameModes ( GameModeRegistry p_gmrSupportedGameModes ) : GameModeRegistry

Gets a registry of installed game modes.

GetSupportedGameModes ( ) : GameModeRegistry

Gets a registry of supported game modes.

SandboxCheck ( EnvironmentInfo p_eifEnvironmentInfo ) : bool

Checks to see if a sandbox is interfering with dynamic code generation.

SetCompressorPath ( EnvironmentInfo p_eifEnvironmentInfo ) : void

Sets the path to the external compression library.

Private Methods

Méthode Description
SetUpFonts ( ) : NexusFontSetResolver

Sets up the fonts.

Method Details

Bootstrapper() public méthode

A simple constructor that initializes the object with the given values.
public Bootstrapper ( EnvironmentInfo p_eifEnvironmentInfo ) : System
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
Résultat System

DisposeServices() protected méthode

This disposes of the services we created.
protected DisposeServices ( ServiceManager p_smgServices ) : void
p_smgServices ServiceManager The services to dispose.
Résultat void

GetInstalledGameModes() protected méthode

Gets a registry of installed game modes.
protected GetInstalledGameModes ( GameModeRegistry p_gmrSupportedGameModes ) : GameModeRegistry
p_gmrSupportedGameModes Nexus.Client.Games.GameModeRegistry The games modes supported by the mod manager.
Résultat Nexus.Client.Games.GameModeRegistry

GetSupportedGameModes() protected méthode

Gets a registry of supported game modes.
protected GetSupportedGameModes ( ) : GameModeRegistry
Résultat Nexus.Client.Games.GameModeRegistry

RunMainForm() public méthode

Runs the applications
This method makes sure the environment is sane. If so, it creates the required services and launches the main form.
public RunMainForm ( string p_strArgs ) : bool
p_strArgs string The command line arguments passed to the application.
Résultat bool

SandboxCheck() protected méthode

Checks to see if a sandbox is interfering with dynamic code generation.
protected SandboxCheck ( EnvironmentInfo p_eifEnvironmentInfo ) : bool
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
Résultat bool

SetCompressorPath() protected méthode

Sets the path to the external compression library.
protected SetCompressorPath ( EnvironmentInfo p_eifEnvironmentInfo ) : void
p_eifEnvironmentInfo EnvironmentInfo The application's envrionment info.
Résultat void