Struct STaskMethodBuilder
Assembly: WaaS.Core.dll
View Source
Declaration
public struct STaskMethodBuilder
Properties
Task
View Source
Declaration
public STaskVoid Task { get; }
Methods
Create()
View Source
Declaration
public static STaskMethodBuilder Create()
Returns
Start<TStateMachine>(ref TStateMachine)
View Source
Declaration
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
Parameters
Type | Name |
---|---|
<TStateMachine> | stateMachine |
Type Parameters
TStateMachine
SetStateMachine(IAsyncStateMachine)
View Source
Declaration
public void SetStateMachine(IAsyncStateMachine stateMachine)
Parameters
Type | Name |
---|---|
System.Runtime.CompilerServices.IAsyncStateMachine | stateMachine |
SetException(Exception)
View Source
Declaration
public void SetException(Exception exception)
Parameters
Type | Name |
---|---|
System.Exception | exception |
SetResult()
View Source
Declaration
public void SetResult()
AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)
View Source
Declaration
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
Parameters
Type | Name |
---|---|
<TAwaiter> | awaiter |
<TStateMachine> | stateMachine |
Type Parameters
TAwaiter
TStateMachine
AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)
View Source
Declaration
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
Parameters
Type | Name |
---|---|
<TAwaiter> | awaiter |
<TStateMachine> | stateMachine |
Type Parameters
TAwaiter
TStateMachine