-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleConstants.cs
More file actions
58 lines (52 loc) · 1.57 KB
/
ModuleConstants.cs
File metadata and controls
58 lines (52 loc) · 1.57 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
using System.Collections.Generic;
using VirtoCommerce.Platform.Core.Settings;
namespace VirtoCommerce.OpenTelemetry.Web;
public static class ModuleConstants
{
public static class Security
{
public static class Permissions
{
public const string Access = "open-telemetry:access";
public const string Create = "open-telemetry:create";
public const string Read = "open-telemetry:read";
public const string Update = "open-telemetry:update";
public const string Delete = "open-telemetry:delete";
public static string[] AllPermissions { get; } =
[
Access,
Create,
Read,
Update,
Delete,
];
}
}
public static class Settings
{
public static class General
{
public static SettingDescriptor OpenTelemetryEnabled { get; } = new()
{
Name = "OpenTelemetry.Enabled",
GroupName = "OpenTelemetry|General",
ValueType = SettingValueType.Boolean,
DefaultValue = false,
};
public static IEnumerable<SettingDescriptor> AllGeneralSettings
{
get
{
yield return OpenTelemetryEnabled;
}
}
}
public static IEnumerable<SettingDescriptor> AllSettings
{
get
{
return General.AllGeneralSettings;
}
}
}
}