OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class BaseOpenModRustHost

Inheritance
System.Object
BaseOpenModRustHost
OpenModRustOxideHost
Implements
IDisposable
Namespace: OpenMod.Rust
Assembly: OpenMod.Rust.dll
Syntax
public abstract class BaseOpenModRustHost : IOpenModHost, IDisposable

Constructors

| Improve this Doc View Source

BaseOpenModRustHost(ILifetimeScope, IRuntime, IDataStoreFactory)

Declaration
protected BaseOpenModRustHost(ILifetimeScope lifetimeScope, IRuntime runtime, IDataStoreFactory dataStoreFactory)
Parameters
Type Name Description
ILifetimeScope lifetimeScope
IRuntime runtime
IDataStoreFactory dataStoreFactory

Properties

| Improve this Doc View Source

DataStore

Declaration
public IDataStore DataStore { get; }
Property Value
Type Description
IDataStore
| Improve this Doc View Source

IsComponentAlive

Declaration
public bool IsComponentAlive { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

LifetimeScope

Declaration
public ILifetimeScope LifetimeScope { get; }
Property Value
Type Description
ILifetimeScope
| Improve this Doc View Source

OpenModComponentId

Declaration
public string OpenModComponentId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

WorkingDirectory

Declaration
public string WorkingDirectory { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

HasCapability(String)

Declaration
public bool HasCapability(string capability)
Parameters
Type Name Description
System.String capability
Returns
Type Description
System.Boolean
| Improve this Doc View Source

InitAsync()

Declaration
public Task InitAsync()
Returns
Type Description
Task
| Improve this Doc View Source

OnDispose()

Declaration
protected abstract void OnDispose()
| Improve this Doc View Source

OnInitAsync()

Declaration
protected abstract Task OnInitAsync()
Returns
Type Description
Task
| Improve this Doc View Source

PerformHardReloadAsync()

Declaration
public Task PerformHardReloadAsync()
Returns
Type Description
Task
| Improve this Doc View Source

ShutdownAsync()

Declaration
public Task ShutdownAsync()
Returns
Type Description
Task

Implements

IDisposable

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)