Table of Contents

Class StartupContext

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

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

init SampSharpInitParams

The initialization parameters.

Properties

ComponentList

Gets the open.mp component list.

public IComponentList ComponentList { get; }

Property Value

IComponentList

Configurator

Gets the configured startup configurator.

public IStartup Configurator { get; }

Property Value

IStartup

Core

Gets the open.mp core.

public ICore Core { get; }

Property Value

ICore

Info

Gets information about the SampSharp open.mp component.

public SampSharpInfo Info { get; }

Property Value

SampSharpInfo

UnhandledExceptionHandler

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

public ExceptionHandler UnhandledExceptionHandler { get; set; }

Property Value

ExceptionHandler

Methods

InitializeUsing(IStartup)

Internal method. Do not invoke manually.

public void InitializeUsing(IStartup configurator)

Parameters

configurator IStartup

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

EventHandler

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

EventHandler<IComponent>

Initialized

Occurs when the application has been initialized.

public event EventHandler? Initialized

Event Type

EventHandler