4
4
using Microsoft . AspNetCore . Http . Validation ;
5
5
using Microsoft . AspNetCore . Http . Validation . Generated ;
6
6
using Microsoft . Extensions . DependencyInjection ;
7
- using Microsoft . Diagnostics . Tools . Monitor ;
8
- using Microsoft . Diagnostics . Monitoring . WebApi . Models ;
9
- using Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options ;
10
- using Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions ;
11
- using Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Triggers . EventCounterShortcuts ;
12
- using Microsoft . Diagnostics . Monitoring . WebApi ;
13
- using Microsoft . Diagnostics . Tools . Monitor . Egress . FileSystem ;
14
- using Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Triggers ;
15
7
16
8
namespace Microsoft . Diagnostics . Monitoring . TestCommon
17
9
{
@@ -22,56 +14,11 @@ namespace Microsoft.Diagnostics.Monitoring.TestCommon
22
14
[ ValidatableType ]
23
15
internal sealed class TestValidatableTypes
24
16
{
25
- public required CollectionRuleOptions CollectionRuleOptions { get ; init ; }
26
-
27
- public required ExecuteOptions ExecuteOptions { get ; init ; }
28
-
29
- public required SetEnvironmentVariableOptions SetEnvironmentVariableOptions { get ; init ; }
30
-
31
- public required GetEnvironmentVariableOptions GetEnvironmentVariableOptions { get ; init ; }
32
-
33
- public required CollectTraceOptions CollectTraceOptions { get ; init ; }
34
-
35
- public required GlobalCounterOptions GlobalCounterOptions { get ; init ; }
36
-
37
- public required CollectGCDumpOptions CollectGCDumpOptions { get ; init ; }
38
-
39
- public required CollectLiveMetricsOptions CollectLiveMetricsOptions { get ; init ; }
40
-
41
- public required CollectStacksOptions CollectStacksOptions { get ; init ; }
42
-
43
- public required CollectLogsOptions CollectLogsOptions { get ; init ; }
44
-
45
- public required RootOptions RootOptions { get ; init ; }
46
-
47
- public required FileSystemEgressProviderOptions FileSystemEgressProviderOptions { get ; init ; }
48
-
49
- public required CollectDumpOptions CollectDumpOptions { get ; init ; }
50
-
51
- public required LoadProfilerOptions LoadProfilerOptions { get ; init ; }
52
-
53
- public required CollectExceptionsOptions CollectExceptionsOptions { get ; init ; }
54
-
55
- // Triggers...
56
- public required AspNetRequestCountOptions AspNetRequestCountOptions { get ; init ; }
57
- public required AspNetRequestDurationOptions AspNetRequestDurationOptions { get ; init ; }
58
- public required AspNetResponseStatusOptions AspNetResponseStatusOptions { get ; init ; }
59
- public required EventCounterOptions EventCounterOptions { get ; init ; }
60
- public required CPUUsageOptions CPUUsageOptions { get ; init ; }
61
- public required GCHeapSizeOptions GCHeapSizeOptions { get ; init ; }
62
- public required ThreadpoolQueueLengthOptions ThreadpoolQueueLengthOptions { get ; init ; }
63
- public required EventMeterOptions EventMeterOptions { get ; init ; }
64
-
65
- // Nested member
66
- public required EventPipeProvider EventPipeProvider { get ; init ; }
67
-
68
- // TODO: only one resolver per project? Generate this for tests, for now. Maybe want to separate this one out
69
- // by test later.
70
17
public required PassThroughOptions PassThroughOptions { get ; init ; }
71
18
72
19
public static void AddValidation ( IServiceCollection services )
73
20
{
74
- GeneratedServiceCollectionExtensions . AddValidation ( services ) ;
21
+ TestGeneratedServiceCollectionExtensions . AddValidation ( services ) ;
75
22
}
76
23
}
77
24
}
0 commit comments