Skip to main content

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

STask.STaskMethodBuilder

Start<TStateMachine>(ref TStateMachine)

View Source
Declaration
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
Parameters
TypeName
<TStateMachine>stateMachine
Type Parameters
  • TStateMachine

SetStateMachine(IAsyncStateMachine)

View Source
Declaration
public void SetStateMachine(IAsyncStateMachine stateMachine)
Parameters
TypeName
System.Runtime.CompilerServices.IAsyncStateMachinestateMachine

SetException(Exception)

View Source
Declaration
public void SetException(Exception exception)
Parameters
TypeName
System.Exceptionexception

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
TypeName
<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
TypeName
<TAwaiter>awaiter
<TStateMachine>stateMachine
Type Parameters
  • TAwaiter
  • TStateMachine