-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathExperiments.cs
More file actions
46 lines (44 loc) · 1.54 KB
/
Experiments.cs
File metadata and controls
46 lines (44 loc) · 1.54 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
namespace RESPite
{
// example usage:
// [Experimental(Experiments.SomeFeature, UrlFormat = Experiments.UrlFormat)]
// where SomeFeature has the next label, for example "SER042", and /docs/exp/SER042.md exists
internal static class Experiments
{
public const string UrlFormat = "https://stackexchange.github.io/StackExchange.Redis/exp/";
// ReSharper disable InconsistentNaming
public const string Server_8_4 = "SER002";
public const string Server_8_6 = "SER003";
public const string Respite = "SER004";
public const string UnitTesting = "SER005";
public const string Server_8_8 = "SER006";
// ReSharper restore InconsistentNaming
}
}
#if !NET8_0_OR_GREATER
#pragma warning disable SA1403
namespace System.Diagnostics.CodeAnalysis
#pragma warning restore SA1403
{
[AttributeUsage(
AttributeTargets.Assembly |
AttributeTargets.Module |
AttributeTargets.Class |
AttributeTargets.Struct |
AttributeTargets.Enum |
AttributeTargets.Constructor |
AttributeTargets.Method |
AttributeTargets.Property |
AttributeTargets.Field |
AttributeTargets.Event |
AttributeTargets.Interface |
AttributeTargets.Delegate,
Inherited = false)]
internal sealed class ExperimentalAttribute(string diagnosticId) : Attribute
{
public string DiagnosticId { get; } = diagnosticId;
public string? UrlFormat { get; set; }
public string? Message { get; set; }
}
}
#endif