-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
LiveTraceConfiguration.cs
61 lines (55 loc) · 2.36 KB
/
LiveTraceConfiguration.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
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.WebPubSub.Models
{
/// <summary> Live trace configuration of a Microsoft.SignalRService resource. </summary>
public partial class LiveTraceConfiguration
{
/// <summary> Initializes a new instance of LiveTraceConfiguration. </summary>
public LiveTraceConfiguration()
{
Categories = new ChangeTrackingList<LiveTraceCategory>();
}
/// <summary> Initializes a new instance of LiveTraceConfiguration. </summary>
/// <param name="enabled">
/// Indicates whether or not enable live trace.
/// When it's set to true, live trace client can connect to the service.
/// Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
/// Available values: true, false.
/// Case insensitive.
/// </param>
/// <param name="categories"> Gets or sets the list of category configurations. </param>
internal LiveTraceConfiguration(string enabled, IList<LiveTraceCategory> categories)
{
Enabled = enabled;
Categories = categories;
}
/// <summary>
/// Indicates whether or not enable live trace.
/// When it's set to true, live trace client can connect to the service.
/// Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
/// Available values: true, false.
/// Case insensitive.
/// </summary>
private string Enabled { get; set; }
/// <summary>
/// Indicates whether or not enable live trace.
/// </summary>
public bool? IsEnabled
{
get
{
return bool.Parse(Enabled);
}
set
{
Enabled = value.ToString().ToLower(new System.Globalization.CultureInfo("en-us"));
}
}
/// <summary> Gets or sets the list of category configurations. </summary>
public IList<LiveTraceCategory> Categories { get; }
}
}