Table of Contents

Interface IReadonlyContext

Namespace
Executables.Context
Assembly
executables.dll

Represents a read-only executable context.

public interface IReadonlyContext : IFormattable
Inherited Members

Properties

ContextId

Unique context identifier.

long ContextId { get; }

Property Value

long

CorrelationId

Correlation identifier shared by related contexts.

Guid CorrelationId { get; }

Property Value

Guid

Depth

Nesting depth relative to the root context.

int Depth { get; }

Property Value

int

Name

Context name.

string Name { get; }

Property Value

string

Parent

Parent context, or null for the root context.

IReadonlyContext Parent { get; }

Property Value

IReadonlyContext

Root

Root context of the current hierarchy.

IReadonlyContext Root { get; }

Property Value

IReadonlyContext

Methods

TryGetLocal<T>(object, out T)

Tries to get a value from the current context only.

bool TryGetLocal<T>(object key, out T value)

Parameters

key object
value T

Returns

bool

Type Parameters

T

TryGet<T>(object, out T)

Tries to get a value from the current context or its ancestors.

bool TryGet<T>(object key, out T value)

Parameters

key object
value T

Returns

bool

Type Parameters

T