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
identifierstringIdentifier of the background server method execution.
cancellationTokenCancellationTokenCancellation 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
identifierstringBackground server method execution identifier.
cancellationTokenCancellationTokenCancellation token.