Show / Hide Table of Contents

Class SetThreadState<TThreadState, TThreadCleanupState>

Operation signature used to assign state on to a new thread - passed on from a calling thread.

Inheritance
Object
SetThreadState<TThreadState, TThreadCleanupState>
Namespace: SuperOffice.Threading
Assembly: SoCore.dll
Syntax
public sealed class SetThreadState<in TThreadState, out TThreadCleanupState> : MulticastDelegate
Type Parameters
Name Description
TThreadState

Type of state to apply on to the new thread.

TThreadCleanupState

Type of state passed from initialization code in the new thread on to clean-up code in this same thread.

Constructors

SetThreadState(Object, IntPtr)

Operation signature used to assign state on to a new thread - passed on from a calling thread.

Declaration
public SetThreadState(object object, IntPtr method)
Parameters
Type Name Description
Object object
IntPtr method

Methods

BeginInvoke(TThreadState, AsyncCallback, Object)

Operation signature used to assign state on to a new thread - passed on from a calling thread.

Declaration
public virtual IAsyncResult BeginInvoke(TThreadState threadState, AsyncCallback callback, object object)
Parameters
Type Name Description
TThreadState threadState
AsyncCallback callback
Object object
Returns
Type Description
IAsyncResult

EndInvoke(IAsyncResult)

Operation signature used to assign state on to a new thread - passed on from a calling thread.

Declaration
public virtual TThreadCleanupState EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
TThreadCleanupState

Invoke(TThreadState)

Operation signature used to assign state on to a new thread - passed on from a calling thread.

Declaration
public virtual TThreadCleanupState Invoke(TThreadState threadState)
Parameters
Type Name Description
TThreadState threadState
Returns
Type Description
TThreadCleanupState

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