Class StartupContext
Represents the context in which the application is started.
public sealed class StartupContext : IStartupContext
- Inheritance
-
StartupContext
- Implements
- Inherited Members
- Extension Methods
Constructors
StartupContext(SampSharpInitParams)
Initializes a new instance of the StartupContext class.
public StartupContext(SampSharpInitParams init)
Parameters
initSampSharpInitParamsThe initialization parameters.
Properties
ComponentList
Gets the open.mp component list.
public IComponentList ComponentList { get; }
Property Value
Configurator
Gets the configured startup configurator.
public IStartup Configurator { get; }
Property Value
Core
Gets the open.mp core.
public ICore Core { get; }
Property Value
Info
Gets information about the SampSharp open.mp component.
public SampSharpInfo Info { get; }
Property Value
UnhandledExceptionHandler
Gets or sets the handler for unhandled exceptions which may occur during the application's lifetime.
public ExceptionHandler UnhandledExceptionHandler { get; set; }
Property Value
Methods
InitializeUsing(IStartup)
Internal method. Do not invoke manually.
public void InitializeUsing(IStartup configurator)
Parameters
configuratorIStartup
MainInfoProvider()
Internal method. Do not invoke manually.
public static void MainInfoProvider()
Events
Cleanup
Occurs when the application is being cleaned up.
public event EventHandler? Cleanup
Event Type
ComponentFreed
Occurs when an open.mp component is being freed. The component which is being freed is passed as an argument.
public event EventHandler<IComponent>? ComponentFreed
Event Type
Initialized
Occurs when the application has been initialized.
public event EventHandler? Initialized