Table of Contents

Class ConnectorBackgroundService

Namespace
Azure.Iot.Operations.Connector
Assembly
Azure.Iot.Operations.Connector.dll
public abstract class ConnectorBackgroundService : BackgroundService, IHostedService, IDisposable
Inheritance
ConnectorBackgroundService
Implements
Derived
Inherited Members

Methods

RunConnectorAsync(CancellationToken)

Run the connector worker.

public abstract Task RunConnectorAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task

Remarks

This will run the connector until the provided cancellation token is cancelled.