Class ISafeBlockingTaskInheritorExtensions
Inherited Members
Namespace: SuperOffice.Threading
Assembly: SoCore.dll
Syntax
public static class ISafeBlockingTaskInheritorExtensions
Methods
InheritValues(IEnumerable<ISafeBlockingTaskInheritor>)
Helper method both collecting values from a aset of ISafeBlockingTaskInheritor and resets it, so a clean context can be applied to preseding code block.
Declaration
public static List<IDisposable> InheritValues(this IEnumerable<ISafeBlockingTaskInheritor> inheritors)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISafeBlockingTaskInheritor> | inheritors |
Returns
Type | Description |
---|---|
List<IDisposable> | List of disposable objects, where disposing reverts state to state as of before values were inherited |