@@ -294,6 +294,16 @@ public bool TryGetValidatableTypeInfo(global::System.Type type, [global::System.
294
294
validatableInfo = CreateFileSystemEgressProviderOptions ( ) ;
295
295
return true ;
296
296
}
297
+ if ( type == typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . CollectDumpOptions ) )
298
+ {
299
+ validatableInfo = CreateCollectDumpOptions ( ) ;
300
+ return true ;
301
+ }
302
+ if ( type == typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . LoadProfilerOptions ) )
303
+ {
304
+ validatableInfo = CreateLoadProfilerOptions ( ) ;
305
+ return true ;
306
+ }
297
307
if ( type == typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . TestValidatableTypes ) )
298
308
{
299
309
validatableInfo = CreateTestValidatableTypes ( ) ;
@@ -717,12 +727,13 @@ private ValidatableTypeInfo CreateGuid()
717
727
return new GeneratedValidatableTypeInfo (
718
728
type : typeof ( global ::System . Guid ) ,
719
729
members : [
720
- new GeneratedValidatablePropertyInfo (
721
- containingType : typeof ( global ::System . Guid ) ,
722
- propertyType : typeof ( global ::System . Guid ) ,
723
- name : "AllBitsSet" ,
724
- displayName : "AllBitsSet"
725
- ) ,
730
+ // https://github.com/dotnet/aspnetcore/issues/61525
731
+ // new GeneratedValidatablePropertyInfo(
732
+ // containingType: typeof(global::System.Guid),
733
+ // propertyType: typeof(global::System.Guid),
734
+ // name: "AllBitsSet",
735
+ // displayName: "AllBitsSet"
736
+ // ),
726
737
]
727
738
) ;
728
739
}
@@ -1500,6 +1511,58 @@ private ValidatableTypeInfo CreateFileSystemEgressProviderOptions()
1500
1511
]
1501
1512
) ;
1502
1513
}
1514
+ private ValidatableTypeInfo CreateCollectDumpOptions ( )
1515
+ {
1516
+ return new GeneratedValidatableTypeInfo (
1517
+ type : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . CollectDumpOptions ) ,
1518
+ members : [
1519
+ // new GeneratedValidatablePropertyInfo(
1520
+ // containingType: typeof(global::Microsoft.Diagnostics.Tools.Monitor.CollectionRules.Options.Actions.CollectDumpOptions),
1521
+ // propertyType: typeof(global::System.Type),
1522
+ // name: "EqualityContract",
1523
+ // displayName: "EqualityContract"
1524
+ // ),
1525
+ new GeneratedValidatablePropertyInfo (
1526
+ containingType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . CollectDumpOptions ) ,
1527
+ propertyType : typeof ( global ::Microsoft . Diagnostics . Monitoring . WebApi . Models . DumpType ? ) ,
1528
+ name : "Type" ,
1529
+ displayName : "Microsoft.Diagnostics.Monitoring.WebApi.OptionsDisplayStrings"
1530
+ ) ,
1531
+ new GeneratedValidatablePropertyInfo (
1532
+ containingType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . CollectDumpOptions ) ,
1533
+ propertyType : typeof ( string ) ,
1534
+ name : "Egress" ,
1535
+ displayName : "Microsoft.Diagnostics.Monitoring.WebApi.OptionsDisplayStrings"
1536
+ ) ,
1537
+ ]
1538
+ ) ;
1539
+ }
1540
+ private ValidatableTypeInfo CreateLoadProfilerOptions ( )
1541
+ {
1542
+ return new GeneratedValidatableTypeInfo (
1543
+ type : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . LoadProfilerOptions ) ,
1544
+ members : [
1545
+ // new GeneratedValidatablePropertyInfo(
1546
+ // containingType: typeof(global::Microsoft.Diagnostics.Tools.Monitor.CollectionRules.Options.Actions.LoadProfilerOptions),
1547
+ // propertyType: typeof(global::System.Type),
1548
+ // name: "EqualityContract",
1549
+ // displayName: "EqualityContract"
1550
+ // ),
1551
+ new GeneratedValidatablePropertyInfo (
1552
+ containingType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . LoadProfilerOptions ) ,
1553
+ propertyType : typeof ( string ) ,
1554
+ name : "Path" ,
1555
+ displayName : "Microsoft.Diagnostics.Monitoring.WebApi.OptionsDisplayStrings"
1556
+ ) ,
1557
+ new GeneratedValidatablePropertyInfo (
1558
+ containingType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . LoadProfilerOptions ) ,
1559
+ propertyType : typeof ( global ::System . Guid ) ,
1560
+ name : "Clsid" ,
1561
+ displayName : "Microsoft.Diagnostics.Monitoring.WebApi.OptionsDisplayStrings"
1562
+ ) ,
1563
+ ]
1564
+ ) ;
1565
+ }
1503
1566
private ValidatableTypeInfo CreateTestValidatableTypes ( )
1504
1567
{
1505
1568
return new GeneratedValidatableTypeInfo (
@@ -1565,6 +1628,18 @@ private ValidatableTypeInfo CreateTestValidatableTypes()
1565
1628
name : "FileSystemEgressProviderOptions" ,
1566
1629
displayName : "FileSystemEgressProviderOptions"
1567
1630
) ,
1631
+ new GeneratedValidatablePropertyInfo (
1632
+ containingType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . TestValidatableTypes ) ,
1633
+ propertyType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . CollectDumpOptions ) ,
1634
+ name : "CollectDumpOptions" ,
1635
+ displayName : "CollectDumpOptions"
1636
+ ) ,
1637
+ new GeneratedValidatablePropertyInfo (
1638
+ containingType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . TestValidatableTypes ) ,
1639
+ propertyType : typeof ( global ::Microsoft . Diagnostics . Tools . Monitor . CollectionRules . Options . Actions . LoadProfilerOptions ) ,
1640
+ name : "LoadProfilerOptions" ,
1641
+ displayName : "LoadProfilerOptions"
1642
+ ) ,
1568
1643
]
1569
1644
) ;
1570
1645
}
@@ -1574,7 +1649,7 @@ private ValidatableTypeInfo CreateTestValidatableTypes()
1574
1649
[ global ::System . CodeDom . Compiler . GeneratedCodeAttribute ( "Microsoft.AspNetCore.Http.ValidationsGenerator, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" , "10.0.0.0" ) ]
1575
1650
internal static class GeneratedServiceCollectionExtensions
1576
1651
{
1577
- // [global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "o12abVmqqV0zqGgiPVl+aU9UAQBWYWxpZGF0YWJsZUluZm9SZXNvbHZlci5jcw ==")]
1652
+ // [global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "tmDjl/scvJBp7h4Jis0nT+NkAQBWYWxpZGF0YWJsZUluZm9SZXNvbHZlci5jcw ==")]
1578
1653
public static global ::Microsoft . Extensions . DependencyInjection . IServiceCollection AddValidation ( this global ::Microsoft . Extensions . DependencyInjection . IServiceCollection services , global ::System . Action < ValidationOptions > ? configureOptions = null )
1579
1654
{
1580
1655
// Use non-extension method to avoid infinite recursion.
0 commit comments