Condividi tramite


WeightedAllocationWorkerSelectorAttachment Class

Definition

Describes multiple sets of worker selectors, of which one will be selected and attached according to a weighting.

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

Constructors

WeightedAllocationWorkerSelectorAttachment(IEnumerable<WorkerWeightedAllocation>)

Initializes a new instance of WeightedAllocationWorkerSelectorAttachment.

Properties

Allocations

A collection of percentage based weighted allocations.

Kind

The type discriminator describing a sub-type of WorkerSelectorAttachment.

(Inherited from WorkerSelectorAttachment)

Explicit Interface Implementations

IJsonModel<WeightedAllocationWorkerSelectorAttachment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Converts the provided BinaryData into a model.

IPersistableModel<WeightedAllocationWorkerSelectorAttachment>.GetFormatFromOptions(ModelReaderWriterOptions)

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

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