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
BundleManifestThe bundle to create the runtime context for.
RuntimeContext(BundleManifest, ModuleReaderParameters)
Creates a new runtime context.
public RuntimeContext(BundleManifest manifest, ModuleReaderParameters readerParameters)
Parameters
manifest
BundleManifestThe bundle to create the runtime context for.
readerParameters
ModuleReaderParametersThe parameters to use when reading modules in this context.
RuntimeContext(DotNetRuntimeInfo)
Creates a new runtime context.
public RuntimeContext(DotNetRuntimeInfo targetRuntime)
Parameters
targetRuntime
DotNetRuntimeInfoThe target runtime version.
RuntimeContext(DotNetRuntimeInfo, IAssemblyResolver)
Creates a new runtime context.
public RuntimeContext(DotNetRuntimeInfo targetRuntime, IAssemblyResolver assemblyResolver)
Parameters
targetRuntime
DotNetRuntimeInfoThe target runtime version.
assemblyResolver
IAssemblyResolverThe 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
DotNetRuntimeInfoThe target runtime version.
readerParameters
ModuleReaderParametersThe 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
DefaultReaderParameters
Gets the default parameters that are used for reading .NET modules in the context.
public ModuleReaderParameters DefaultReaderParameters { get; }
Property Value
TargetRuntime
Gets the runtime version this context is targeting.
public DotNetRuntimeInfo TargetRuntime { get; }