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
CorrelationId
Correlation identifier shared by related contexts.
Guid CorrelationId { get; }
Property Value
Depth
Nesting depth relative to the root context.
int Depth { get; }
Property Value
Name
Context name.
string Name { get; }
Property Value
Parent
Parent context, or null for the root context.
IReadonlyContext Parent { get; }
Property Value
Root
Root context of the current hierarchy.
IReadonlyContext Root { get; }
Property Value
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
keyobjectvalueT
Returns
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
keyobjectvalueT
Returns
Type Parameters
T