BackgroundCalculationCaptureCalculationContext Method |
Captures the calculation context of the calling thread. This is the context that
will be passed to the new thread when
RunWorkerAsync is called. This method cannot
be called after
RunWorkerAsync.
Namespace:
AGI.Foundation.Infrastructure.Threading
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public void CaptureCalculationContext()
Public Sub CaptureCalculationContext
public:
void CaptureCalculationContext()
member CaptureCalculationContext : unit -> unit
Exceptions Exception | Condition |
---|
InvalidOperationException |
Thrown when the background computation has already been started. The calculation context
cannot be captured after this point.
|
See Also