HostedAdapterExecutionService
Namespace: Meshmakers.Octo.Sdk.Common.Adapters
The hosted service for the execution of an adapter. Implements retry logic with exponential backoff to handle transient connection failures.
public class HostedAdapterExecutionService : BackgroundService, IHostedService, IDisposable
Inheritance Object → BackgroundService → HostedAdapterExecutionService
Implements IHostedService, IDisposable
Properties
ExecuteTask
public Task ExecuteTask { get; }
Property Value
Constructors
HostedAdapterExecutionService(AdapterExecutionService)
The hosted service for the execution of an adapter. Implements retry logic with exponential backoff to handle transient connection failures.
public HostedAdapterExecutionService(AdapterExecutionService adapterExecutionService)
Parameters
adapterExecutionService AdapterExecutionService
Methods
ExecuteAsync(CancellationToken)
protected Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
stoppingToken CancellationToken
Returns
StopAsync(CancellationToken)
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationToken CancellationToken