JobRouterModelFactory.DistributionPolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of DistributionPolicy.
public static Azure.Communication.JobRouter.DistributionPolicy DistributionPolicy (Azure.ETag eTag = default, string id = default, string name = default, TimeSpan? offerExpiresAfter = default, Azure.Communication.JobRouter.DistributionMode mode = default);
static member DistributionPolicy : Azure.ETag * string * string * Nullable<TimeSpan> * Azure.Communication.JobRouter.DistributionMode -> Azure.Communication.JobRouter.DistributionPolicy
Public Shared Function DistributionPolicy (Optional eTag As ETag = Nothing, Optional id As String = Nothing, Optional name As String = Nothing, Optional offerExpiresAfter As Nullable(Of TimeSpan) = Nothing, Optional mode As DistributionMode = Nothing) As DistributionPolicy
Parameters
- eTag
- ETag
The entity tag for this resource.
- id
- String
Id of a distribution policy.
- name
- String
Friendly name of this policy.
Number of seconds after which any offers created under this policy will be expired.
- mode
- DistributionMode
Mode governing the specific distribution method. 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.
Returns
A new DistributionPolicy instance for mocking.
Applies to
Azure SDK for .NET