Class CleanupThreadState<TThreadState, TThreadCleanupState>
Operation signature used to clean up thread-state used in initialization, so it is possible to later re-use the trhead.
Namespace: SuperOffice.Threading
Assembly: SoCore.dll
Syntax
public sealed class CleanupThreadState<in TThreadState, in 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
CleanupThreadState(Object, IntPtr)
Operation signature used to clean up thread-state used in initialization, so it is possible to later re-use the trhead.
Declaration
public CleanupThreadState(object object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
Object | object | |
IntPtr | method |
Methods
BeginInvoke(TThreadState, TThreadCleanupState, AsyncCallback, Object)
Operation signature used to clean up thread-state used in initialization, so it is possible to later re-use the trhead.
Declaration
public virtual IAsyncResult BeginInvoke(TThreadState threadState, TThreadCleanupState threadCleanupState, AsyncCallback callback, object object)
Parameters
Type | Name | Description |
---|---|---|
TThreadState | threadState | |
TThreadCleanupState | threadCleanupState | |
AsyncCallback | callback | |
Object | object |
Returns
Type | Description |
---|---|
IAsyncResult |
EndInvoke(IAsyncResult)
Operation signature used to clean up thread-state used in initialization, so it is possible to later re-use the trhead.
Declaration
public virtual void EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result |
Invoke(TThreadState, TThreadCleanupState)
Operation signature used to clean up thread-state used in initialization, so it is possible to later re-use the trhead.
Declaration
public virtual void Invoke(TThreadState threadState, TThreadCleanupState threadCleanupState)
Parameters
Type | Name | Description |
---|---|---|
TThreadState | threadState | |
TThreadCleanupState | threadCleanupState |