Interface IStartupContext
Provides the properties and events which provide context to the startup of the application.
public interface IStartupContext
- Extension Methods
Properties
ComponentList
Gets the open.mp component list.
IComponentList ComponentList { get; }
Property Value
Configurator
Gets the configured startup configurator.
IStartup Configurator { get; }
Property Value
Core
Gets the open.mp core.
ICore Core { get; }
Property Value
Info
Gets information about the SampSharp open.mp component.
SampSharpInfo Info { get; }
Property Value
UnhandledExceptionHandler
Gets or sets the handler for unhandled exceptions which may occur during the application's lifetime.
ExceptionHandler UnhandledExceptionHandler { get; set; }
Property Value
Events
Cleanup
Occurs when the application is being cleaned up.
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.
event EventHandler<IComponent>? ComponentFreed
Event Type
Initialized
Occurs when the application has been initialized.
event EventHandler? Initialized