1 write to EndpointBuilder
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
297
EndpointBuilder
= builder,
265 references to EndpointBuilder
Microsoft.AspNetCore.Http.Extensions (5)
RequestDelegateFactory.cs (4)
172
/// <see cref="InferMetadata(MethodInfo, RequestDelegateFactoryOptions?)"/> would have inferred for the same <see cref="Delegate.Method"/> and populate <see cref="RequestDelegateFactoryOptions.
EndpointBuilder
"/>
224
/// <see cref="InferMetadata(MethodInfo, RequestDelegateFactoryOptions?)"/> would have inferred for the same <see cref="Delegate.Method"/> and populate <see cref="RequestDelegateFactoryOptions.
EndpointBuilder
"/>
276
var serviceProvider = options?.ServiceProvider ?? options?.
EndpointBuilder
?.ApplicationServices ?? EmptyServiceProvider.Instance;
277
var endpointBuilder = options?.
EndpointBuilder
?? new RdfEndpointBuilder(serviceProvider);
RequestDelegateMetadataResult.cs (1)
8
/// <see cref="RequestDelegateFactoryOptions.
EndpointBuilder
"/> will be automatically populated with this metadata if provided.
Microsoft.AspNetCore.Identity (241)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (241)
73
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
74
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
75
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
77
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("registration", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
78
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
79
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
80
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
81
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
86
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
87
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
88
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
91
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
99
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
111
options.
EndpointBuilder
,
192
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
193
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
194
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
196
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("login", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
197
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("useCookies", parameters[1], hasTryParse: true, hasBindAsync: false, isOptional: true));
198
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("useSessionCookies", parameters[2], hasTryParse: true, hasBindAsync: false, isOptional: true));
199
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
200
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>, global::Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult>>(methodInfo, options.
EndpointBuilder
);
201
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
206
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
207
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
208
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
211
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
219
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
231
options.
EndpointBuilder
,
378
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
379
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
380
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyRequestOptionsRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
382
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("request", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
383
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
384
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
389
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
390
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
391
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
394
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
402
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
414
options.
EndpointBuilder
,
493
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
494
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
495
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyLoginRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
497
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("login", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
498
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("useCookies", parameters[1], hasTryParse: true, hasBindAsync: false, isOptional: true));
499
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("useSessionCookies", parameters[2], hasTryParse: true, hasBindAsync: false, isOptional: true));
500
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
501
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>, global::Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
502
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
507
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
508
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
509
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
512
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
520
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
532
options.
EndpointBuilder
,
679
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
680
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
681
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
683
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("refreshRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
684
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
685
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.SignInHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult>>(methodInfo, options.
EndpointBuilder
);
686
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
691
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
692
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
693
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
696
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
704
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
716
options.
EndpointBuilder
,
795
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
796
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
798
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("userId", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
799
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("code", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
800
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("changedEmail", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: true));
801
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
802
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult>>(methodInfo, options.
EndpointBuilder
);
803
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
808
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
809
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
810
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
813
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
820
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
832
options.
EndpointBuilder
,
941
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
942
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
943
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
945
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("resendRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
946
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
947
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
948
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Ok>(methodInfo, options.
EndpointBuilder
);
949
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
954
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
955
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
956
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
959
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
967
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
979
options.
EndpointBuilder
,
1060
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1061
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1062
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1064
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("resetRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1065
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1066
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
1067
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1072
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1073
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1074
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1077
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1085
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1097
options.
EndpointBuilder
,
1176
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1177
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1178
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1180
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("resetRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1181
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1182
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
1183
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1188
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1189
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1190
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1193
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1201
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1213
options.
EndpointBuilder
,
1292
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1293
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1295
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1296
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1297
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
1298
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1303
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1304
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1305
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1308
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1315
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1327
options.
EndpointBuilder
,
1394
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1395
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1396
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyRegistrationRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1398
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1399
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("registration", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1400
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
1401
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.PasskeyInfoResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
1402
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1407
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1408
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1409
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1412
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1420
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1432
options.
EndpointBuilder
,
1513
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1514
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1516
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1517
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1518
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.PasskeyInfoResponse[]>, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
1519
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1524
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1525
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1526
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1529
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1536
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1548
options.
EndpointBuilder
,
1615
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1616
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1617
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyUpdateRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1619
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1620
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("credentialId", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1621
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("request", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
1622
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
1623
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.PasskeyInfoResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
1624
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1629
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1630
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1631
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1634
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1643
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1655
options.
EndpointBuilder
,
1754
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1755
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1757
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1758
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("credentialId", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1759
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
1760
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
1761
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1766
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1767
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1768
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1771
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1779
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1791
options.
EndpointBuilder
,
1876
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1877
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1878
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1880
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1881
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("tfaRequest", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1882
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
1883
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
1884
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1889
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1890
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1891
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1894
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1902
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1914
options.
EndpointBuilder
,
1995
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1996
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
1998
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1999
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
2000
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.InfoResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
2001
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
2006
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
2007
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
2008
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
2011
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
2018
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
2030
options.
EndpointBuilder
,
2097
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
2098
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
2099
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
2101
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
2102
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("infoRequest", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
2103
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
2104
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
2105
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.InfoResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>>(methodInfo, options.
EndpointBuilder
);
2106
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
2111
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
2112
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
2113
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
2116
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
2124
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
2136
options.
EndpointBuilder
,
2220
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
2221
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
2223
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
2224
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.JsonHttpResult<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse>>(methodInfo, options.
EndpointBuilder
);
2225
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
2230
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
2231
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
2232
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
2235
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
2241
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
2251
options.
EndpointBuilder
,
Microsoft.AspNetCore.OpenApi (11)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (11)
70
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
71
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=12.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "12.0.0.0"));
73
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
74
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("documentName", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: true));
75
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
80
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
81
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
82
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
85
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
93
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
104
options.
EndpointBuilder
,
Microsoft.AspNetCore.Routing (8)
Builder\EndpointRouteBuilderExtensions.cs (3)
208
if (options.
EndpointBuilder
?.FilterFactories.Count > 0)
213
IReadOnlyList<object> metadata = options.
EndpointBuilder
?.Metadata is not null ?
214
new List<object>(options.
EndpointBuilder
.Metadata) :
RequestDelegateFilterPipelineBuilder.cs (5)
19
Debug.Assert(options.
EndpointBuilder
!= null);
21
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
28
ApplicationServices = options.
EndpointBuilder
.ApplicationServices
42
for (var i = options.
EndpointBuilder
.FilterFactories.Count - 1; i >= 0; i--)
44
var currentFilterFactory = options.
EndpointBuilder
.FilterFactories[i];