Search Results for

    Show / Hide Table of Contents

    Interface IJobResultProvider

    addon interface to enable a job storage provider (IJobStorageProvider<TStorageRecord>) to support commands that return results.

    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public interface IJobResultProvider

    Methods

    GetJobResultAsync<TResult>(Guid, CancellationToken)

    lookup the job storage record by the supplied tracking id and return its Result value.

    Declaration
    Task<TResult?> GetJobResultAsync<TResult>(Guid trackingId, CancellationToken ct)
    Parameters
    Type Name Description
    Guid trackingId

    the TrackingID of the job to be looked up

    CancellationToken ct

    cancellation token

    Returns
    Type Description
    Task<TResult>
    Type Parameters
    Name Description
    TResult

    the type of the result object

    StoreJobResultAsync<TResult>(Guid, TResult, CancellationToken)

    lookup the job storage record by the supplied tracking id and update it's Result property and persist to the database.

    Declaration
    Task StoreJobResultAsync<TResult>(Guid trackingId, TResult result, CancellationToken ct)
    Parameters
    Type Name Description
    Guid trackingId

    the TrackingID of the job to be looked up

    TResult result

    the job result to be stored

    CancellationToken ct

    cancellation token

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    TResult

    the type of the result object

    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX