Freigeben über


JobRouterClient.GetWorkersAsync(GetWorkersOptions, CancellationToken) Methode

Definition

Ruft vorhandene Worker ab. Übergeben Sie status und Kanal-ID, um Worker weiter zu filtern.

public virtual Azure.AsyncPageable<Azure.Communication.JobRouter.Models.RouterWorkerItem> GetWorkersAsync (Azure.Communication.JobRouter.GetWorkersOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorkersAsync : Azure.Communication.JobRouter.GetWorkersOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.Models.RouterWorkerItem>
override this.GetWorkersAsync : Azure.Communication.JobRouter.GetWorkersOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.Models.RouterWorkerItem>
Public Overridable Function GetWorkersAsync (Optional options As GetWorkersOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RouterWorkerItem)

Parameter

options
GetWorkersOptions

Optionen zum Filtern beim Abrufen von Router-Workern.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

Der Server hat einen Fehler zurückgegeben. Weitere Informationen, die vom Server zurückgegeben werden, finden Sie Message unter.

Gilt für: