Table of Contents

Interface IStartupContext

Namespace
SampSharp.OpenMp.Core
Assembly
SampSharp.OpenMp.Core.dll

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

IComponentList

Configurator

Gets the configured startup configurator.

IStartup Configurator { get; }

Property Value

IStartup

Core

Gets the open.mp core.

ICore Core { get; }

Property Value

ICore

Info

Gets information about the SampSharp open.mp component.

SampSharpInfo Info { get; }

Property Value

SampSharpInfo

UnhandledExceptionHandler

Gets or sets the handler for unhandled exceptions which may occur during the application's lifetime.

ExceptionHandler UnhandledExceptionHandler { get; set; }

Property Value

ExceptionHandler

Events

Cleanup

Occurs when the application is being cleaned up.

event EventHandler? Cleanup

Event Type

EventHandler

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

EventHandler<IComponent>

Initialized

Occurs when the application has been initialized.

event EventHandler? Initialized

Event Type

EventHandler