Share via


RuleEngineWorkerSelectorAttachment Class

Definition

Attaches worker selectors to a job when a RouterRule is resolved.

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

Constructors

RuleEngineWorkerSelectorAttachment(RouterRule)

Initializes a new instance of RuleEngineWorkerSelectorAttachment.

Properties

Kind

The type discriminator describing a sub-type of WorkerSelectorAttachment.

(Inherited from WorkerSelectorAttachment)
Rule

A RouterRule that resolves a collection of worker selectors to attach. 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.

Explicit Interface Implementations

IJsonModel<RuleEngineWorkerSelectorAttachment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RuleEngineWorkerSelectorAttachment>.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<RuleEngineWorkerSelectorAttachment>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RuleEngineWorkerSelectorAttachment>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RuleEngineWorkerSelectorAttachment>.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