Udostępnij za pośrednictwem


StaticRouterRule Class

Definition

A rule providing static rules that always return the same result, regardless of input.

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

Constructors

StaticRouterRule(RouterValue)

Initializes a new instance of StaticRule.

Properties

Kind

The type discriminator describing a sub-type of RouterRule.

(Inherited from RouterRule)
Value

The static value this rule always returns. Values must be primitive values - number, string, boolean.

Explicit Interface Implementations

IJsonModel<RouterRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from RouterRule)
IJsonModel<StaticRouterRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<StaticRouterRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RouterRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from RouterRule)
IPersistableModel<StaticRouterRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<StaticRouterRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<StaticRouterRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to