Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Interface IStateMachine

    Represents a state machine interface.

    Namespace: Innovt.Cloud.StateMachine
    Assembly: Innovt.Cloud.dll
    Syntax
    public interface IStateMachine

    Methods

    | Edit this page View Source

    SendTaskFailure(string, string, string, CancellationToken)

    Sends a failure signal for a task to the state machine.

    Declaration
    Task SendTaskFailure(string taskToken, string reason, string taskError, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string taskToken

    The token representing the task.

    string reason

    The reason for task failure.

    string taskError

    The error associated with the task failure.

    CancellationToken cancellationToken

    The cancellation token to cancel the asynchronous operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    | Edit this page View Source

    SendTaskHeartbeat(string, CancellationToken)

    Sends a heartbeat signal for a task to the state machine.

    Declaration
    Task SendTaskHeartbeat(string taskToken, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string taskToken

    The token representing the task.

    CancellationToken cancellationToken

    The cancellation token to cancel the asynchronous operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    | Edit this page View Source

    SendTaskSuccess(string, object, CancellationToken)

    Sends a success signal for a task to the state machine.

    Declaration
    Task SendTaskSuccess(string taskToken, object output, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string taskToken

    The token representing the task.

    object output

    The output of the task.

    CancellationToken cancellationToken

    The cancellation token to cancel the asynchronous operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    | Edit this page View Source

    StartExecution(object, string, string, CancellationToken)

    Starts the execution of the state machine.

    Declaration
    Task StartExecution(object input, string stateMachineArn, string executionId, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    object input

    The input for the state machine.

    string stateMachineArn

    The Amazon Resource Name (ARN) of the state machine.

    string executionId

    The execution ID for this execution.

    CancellationToken cancellationToken

    The cancellation token to cancel the asynchronous operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX