Skip to content

Commit 6fc94ef

Browse files
committed
Replace interceptor
1 parent 45f2147 commit 6fc94ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Tests/Microsoft.Diagnostics.Monitoring.Tool.UnitTestsSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using Microsoft.Diagnostics.Tools.Monitor.Egress.FileSystem;
88

99
var builder = WebApplication.CreateBuilder(args);
10-
builder.Services.AddValidation();
10+
Microsoft.AspNetCore.Http.Validation.Generated.GeneratedServiceCollectionExtensions.AddValidation(builder.Services);
1111
builder.Build();
1212

1313
public partial class Program {}

src/Tests/Microsoft.Diagnostics.Monitoring.Tool.UnitTestsSample/ValidatableInfoResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,9 @@ private ValidatableTypeInfo CreateTestValidatableType()
747747
}
748748

749749
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "10.0.0.0")]
750-
file static class GeneratedServiceCollectionExtensions
750+
internal static class GeneratedServiceCollectionExtensions
751751
{
752-
[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "nMLdYxVpxyjXwof6UabUh7sBAABQcm9ncmFtLmNz")]
752+
// [global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "nMLdYxVpxyjXwof6UabUh7sBAABQcm9ncmFtLmNz")]
753753
public static global::Microsoft.Extensions.DependencyInjection.IServiceCollection AddValidation(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::System.Action<ValidationOptions>? configureOptions = null)
754754
{
755755
// Use non-extension method to avoid infinite recursion.

0 commit comments

Comments
 (0)