ConditionalWorkerSelectorAttachment Class

Definition

Describes a set of worker selectors that will be attached if the given condition resolves to true.

public class ConditionalWorkerSelectorAttachment : Azure.Communication.JobRouter.WorkerSelectorAttachment
public class ConditionalWorkerSelectorAttachment : Azure.Communication.JobRouter.WorkerSelectorAttachment, System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.ConditionalWorkerSelectorAttachment>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.ConditionalWorkerSelectorAttachment>
type ConditionalWorkerSelectorAttachment = class
    inherit WorkerSelectorAttachment
type ConditionalWorkerSelectorAttachment = class
    inherit WorkerSelectorAttachment
    interface IJsonModel<ConditionalWorkerSelectorAttachment>
    interface IPersistableModel<ConditionalWorkerSelectorAttachment>
Public Class ConditionalWorkerSelectorAttachment
Inherits WorkerSelectorAttachment
Public Class ConditionalWorkerSelectorAttachment
Inherits WorkerSelectorAttachment
Implements IJsonModel(Of ConditionalWorkerSelectorAttachment), IPersistableModel(Of ConditionalWorkerSelectorAttachment)
Inheritance
ConditionalWorkerSelectorAttachment
Implements

Constructors

ConditionalWorkerSelectorAttachment(RouterRule)

Initializes a new instance of ConditionalWorkerSelectorAttachment.

Properties

Condition

The condition that must be true for the worker selectors to be attached. Please note RouterRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DirectMapRouterRule, ExpressionRouterRule, FunctionRouterRule, StaticRouterRule and WebhookRouterRule.

Kind

The type discriminator describing a sub-type of WorkerSelectorAttachment.

(Inherited from WorkerSelectorAttachment)
WorkerSelectors

The queue selectors to attach.

Explicit Interface Implementations

IJsonModel<ConditionalWorkerSelectorAttachment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ConditionalWorkerSelectorAttachment>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<WorkerSelectorAttachment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from WorkerSelectorAttachment)
IJsonModel<WorkerSelectorAttachment>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from WorkerSelectorAttachment)
IPersistableModel<ConditionalWorkerSelectorAttachment>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ConditionalWorkerSelectorAttachment>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ConditionalWorkerSelectorAttachment>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<WorkerSelectorAttachment>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from WorkerSelectorAttachment)
IPersistableModel<WorkerSelectorAttachment>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from WorkerSelectorAttachment)
IPersistableModel<WorkerSelectorAttachment>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from WorkerSelectorAttachment)

Applies to