-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathServiceBusModel.cs
More file actions
68 lines (61 loc) · 1.65 KB
/
Copy pathServiceBusModel.cs
File metadata and controls
68 lines (61 loc) · 1.65 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
using System.Text;
namespace Squadron
{
/// <summary>
/// Azure ServiceBus model
/// </summary>
public class ServiceBusModel
{
/// <summary>
/// Gets or sets the namespace.
/// </summary>
/// <value>
/// The namespace.
/// </value>
public string Namespace { get; set; }
/// <summary>
/// Gets or sets the topics.
/// </summary>
/// <value>
/// The topics.
/// </value>
public List<ServiceBusTopicModel> Topics { get; set; }
= new List<ServiceBusTopicModel>();
/// <summary>
/// Gets or sets the queues.
/// </summary>
/// <value>
/// The queues.
/// </value>
public List<ServiceBusQueueModel> Queues { get; set; }
= new List<ServiceBusQueueModel>();
/// <summary>
/// Gets or sets the provisioning mode.
/// </summary>
/// <value>
/// The provisioning mode.
/// </value>
internal ServiceBusProvisioningMode ProvisioningMode { get; set; }
= ServiceBusProvisioningMode.UseExisting;
}
/// <summary>
/// Defines ServiceBUs provisioning modes
/// </summary>
internal enum ServiceBusProvisioningMode
{
/// <summary>
/// The uan existing Azure resource
/// </summary>
UseExisting,
/// <summary>
/// Provision and delete resource
/// </summary>
CreateAndDelete,
/// <summary>
/// Create or update resource
/// </summary>
CreateIfNotExists
}
}