Show / Hide Table of Contents

Interface ISafeBlockingTaskInheritor

Interface implemented to support transponding values from a parent task/context onto a child task/context.

Namespace: SuperOffice.Threading
Assembly: SoCore.dll
Syntax
public interface ISafeBlockingTaskInheritor
Remarks

Used by SafeBlockingTask<T> to transpond values from a parent task to a child task, as well as to move state in wcf requests into async local - as System.Web.HttpContext.Current seam to dissabear without reason during these requests.

Methods

GetSourceTaskValue()

Get values from the parent task/context

Declaration
object GetSourceTaskValue()
Returns
Type Description
object
Remarks

Used by SafeBlockingTask<T> to transpond values from a parent task to a child task, as well as to move state in wcf requests into async local - as System.Web.HttpContext.Current seam to dissabear without reason during these requests.

SetChildTaskValue(object)

Apply the values into new task/context - preferebly using an AsyncLocal construct that does not interfer with parant task/context values

Declaration
IDisposable SetChildTaskValue(object value)
Parameters
Type Name Description
object value

Value obtained by GetSourceTaskValue() to assign

Returns
Type Description
IDisposable

Disposable object, where disposing reverts state to state as of before calling SetChildTaskValue(object)

Remarks

Used by SafeBlockingTask<T> to transpond values from a parent task to a child task, as well as to move state in wcf requests into async local - as System.Web.HttpContext.Current seam to dissabear without reason during these requests.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top