共用方式為


DistributionMode Class

Definition

Abstract base class for defining a distribution mode. Please note DistributionMode 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 BestWorkerMode, LongestIdleMode and RoundRobinMode.

public abstract class DistributionMode
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.JobRouter.UnknownDistributionMode))]
public abstract class DistributionMode : System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.DistributionMode>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.DistributionMode>
type DistributionMode = class
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.JobRouter.UnknownDistributionMode))>]
type DistributionMode = class
    interface IJsonModel<DistributionMode>
    interface IPersistableModel<DistributionMode>
Public MustInherit Class DistributionMode
Public MustInherit Class DistributionMode
Implements IJsonModel(Of DistributionMode), IPersistableModel(Of DistributionMode)
Inheritance
DistributionMode
Derived
Attributes
Implements

Constructors

DistributionMode()

Initializes a new instance of DistributionMode.

Properties

BypassSelectors

If set to true, then router will match workers to jobs even if they don't match label selectors. Warning: You may get workers that are not qualified for a job they are matched with if you set this variable to true. This flag is intended more for temporary usage. By default, set to false.

Kind

The type discriminator describing a sub-type of DistributionMode.

MaxConcurrentOffers

Governs the maximum number of active concurrent offers a job can have.

MinConcurrentOffers

Governs the minimum desired number of active concurrent offers a job can have.

Explicit Interface Implementations

IJsonModel<DistributionMode>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DistributionMode>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DistributionMode>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DistributionMode>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DistributionMode>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to