Table of Contents

Interface IBackgroundServerMethodManager

Namespace
GroupeIsa.Neos.Application.MethodRunners
Assembly
GroupeIsa.Neos.Application.Abstractions.dll

Represents a service to interact with background server method executions.

public interface IBackgroundServerMethodManager

Methods

GetStateAsync(string, CancellationToken)

Gets the state of a background server method execution.

Task<BackgroundServerMethodState> GetStateAsync(string identifier, CancellationToken cancellationToken)

Parameters

identifier string

Identifier of the background server method execution.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<BackgroundServerMethodState>

The result.

RequestPurgeAsync(string, CancellationToken)

Requests a purge of a background server method execution (removes all in the state store).

Task RequestPurgeAsync(string identifier, CancellationToken cancellationToken = default)

Parameters

identifier string

Background server method execution identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A Task representing the asynchronous operation.