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.
Mostrar archivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
SetUpFonts ( ) : NexusFontSetResolver

Sets up the fonts.

Method Details

Bootstrapper() public method

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.
return System

DisposeServices() protected method

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

GetInstalledGameModes() protected method

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.
return Nexus.Client.Games.GameModeRegistry

GetSupportedGameModes() protected method

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

RunMainForm() public method

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.
return bool

SandboxCheck() protected method

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.
return bool

SetCompressorPath() protected method

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