Synced
ExecutionSlot<TValue>.Enter
Section titled “ExecutionSlot<TValue>.Enter”
- Binds a value until the returned scope is retired in strict last-in-first-out order.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Execution
Declaration
Section titled “Declaration”public System.IDisposable Inno.Core.Execution.ExecutionSlot<TValue>.Enter(TValue value, bool threadAffine = false)Parameters
Section titled “Parameters”Parameter value: The service or value owned by the enclosing lifetime.
Parameter threadAffine: Whether access and retirement require the entering thread.
Returns
Section titled “Returns”A scope that revokes inherited bindings and clears their strong references on retirement.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The value is null.