/
RuleEngineWorkerSelectorAttachment.cs
31 lines (26 loc) · 1.49 KB
/
RuleEngineWorkerSelectorAttachment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.Communication.JobRouter
{
/// <summary> Attaches worker selectors to a job when a RouterRule is resolved. </summary>
public partial class RuleEngineWorkerSelectorAttachment : WorkerSelectorAttachment
{
/// <summary> Initializes a new instance of RuleEngineWorkerSelectorAttachment. </summary>
/// <param name="kind"> The type discriminator describing a sub-type of WorkerSelectorAttachment. </param>
/// <param name="rule"> A RouterRule that resolves a collection of worker selectors to attach. </param>
internal RuleEngineWorkerSelectorAttachment(WorkerSelectorAttachmentKind kind, RouterRule rule) : base(kind)
{
Rule = rule;
}
/// <summary>
/// A RouterRule that resolves a collection of worker selectors to attach.
/// Please note <see cref="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 <see cref="DirectMapRouterRule"/>, <see cref="ExpressionRouterRule"/>, <see cref="FunctionRouterRule"/>, <see cref="StaticRouterRule"/> and <see cref="WebhookRouterRule"/>.
/// </summary>
public RouterRule Rule { get; }
}
}