-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RuleEngineWorkerSelectorAttachment.cs
36 lines (33 loc) · 1.3 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
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Azure.Core;
namespace Azure.Communication.JobRouter
{
public partial class RuleEngineWorkerSelectorAttachment
{
/// <summary> Initializes a new instance of RuleEngineWorkerSelectorAttachment. </summary>
/// <param name="rule">
/// A rule of one of the following types:
///
/// StaticRule: A rule
/// providing static rules that always return the same result, regardless of
/// input.
/// DirectMapRule: A rule that return the same labels as the input
/// labels.
/// ExpressionRule: A rule providing inline expression
/// rules.
/// FunctionRule: A rule providing a binding to an HTTP Triggered Azure
/// Function.
/// WebhookRule: A rule providing a binding to a webserver following
/// OAuth2.0 authentication protocol.
/// </param>
/// <exception cref="ArgumentNullException"> <paramref name="rule"/> is null. </exception>
public RuleEngineWorkerSelectorAttachment(RouterRule rule)
{
Argument.AssertNotNull(rule, nameof(rule));
Kind = WorkerSelectorAttachmentKind.RuleEngine;
Rule = rule;
}
}
}