Table of Contents

Class RuntimeContext

Namespace
AsmResolver.DotNet
Assembly
AsmResolver.DotNet.dll

Describes a context in which a .NET runtime is active.

public class RuntimeContext
Inheritance
RuntimeContext
Inherited Members

Constructors

RuntimeContext(BundleManifest)

Creates a new runtime context for the provided bundled application.

public RuntimeContext(BundleManifest manifest)

Parameters

manifest BundleManifest

The bundle to create the runtime context for.

RuntimeContext(BundleManifest, ModuleReaderParameters)

Creates a new runtime context.

public RuntimeContext(BundleManifest manifest, ModuleReaderParameters readerParameters)

Parameters

manifest BundleManifest

The bundle to create the runtime context for.

readerParameters ModuleReaderParameters

The parameters to use when reading modules in this context.

RuntimeContext(DotNetRuntimeInfo)

Creates a new runtime context.

public RuntimeContext(DotNetRuntimeInfo targetRuntime)

Parameters

targetRuntime DotNetRuntimeInfo

The target runtime version.

RuntimeContext(DotNetRuntimeInfo, IAssemblyResolver)

Creates a new runtime context.

public RuntimeContext(DotNetRuntimeInfo targetRuntime, IAssemblyResolver assemblyResolver)

Parameters

targetRuntime DotNetRuntimeInfo

The target runtime version.

assemblyResolver IAssemblyResolver

The assembly resolver to use when resolving assemblies into this context.

RuntimeContext(DotNetRuntimeInfo, ModuleReaderParameters)

Creates a new runtime context.

public RuntimeContext(DotNetRuntimeInfo targetRuntime, ModuleReaderParameters readerParameters)

Parameters

targetRuntime DotNetRuntimeInfo

The target runtime version.

readerParameters ModuleReaderParameters

The parameters to use when reading modules in this context.

Properties

AssemblyResolver

Gets the assembly resolver that the context uses to resolve assemblies.

public IAssemblyResolver AssemblyResolver { get; }

Property Value

IAssemblyResolver

DefaultReaderParameters

Gets the default parameters that are used for reading .NET modules in the context.

public ModuleReaderParameters DefaultReaderParameters { get; }

Property Value

ModuleReaderParameters

TargetRuntime

Gets the runtime version this context is targeting.

public DotNetRuntimeInfo TargetRuntime { get; }

Property Value

DotNetRuntimeInfo