Class PartialConstructorContext
- Namespace
- Conjecture.Core
- Assembly
- Conjecture.Core.dll
Ambient context that flows an IGenerationContext to partial constructors via AsyncLocal<T>.
public static class PartialConstructorContext
- Inheritance
-
PartialConstructorContext
- Inherited Members
Properties
Current
Gets the ambient IGenerationContext for the current async context.
public static IGenerationContext Current { get; }
Property Value
Exceptions
- InvalidOperationException
Thrown when no scope is active.
Methods
Use(IGenerationContext)
Sets ctx as the ambient context for the duration of the returned scope.
public static IDisposable Use(IGenerationContext ctx)