1 write to EndpointBuilder
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
297
EndpointBuilder
= builder,
150 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 (137)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (137)
71
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
72
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
73
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
75
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("registration", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
76
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
77
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
78
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
79
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
84
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
85
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
86
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
89
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
97
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
109
options.
EndpointBuilder
,
190
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
191
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
192
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
194
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("login", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
195
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("useCookies", parameters[1], hasTryParse: true, hasBindAsync: false, isOptional: true));
196
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("useSessionCookies", parameters[2], hasTryParse: true, hasBindAsync: false, isOptional: true));
197
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
198
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
);
199
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
204
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
205
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
206
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
209
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
217
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
229
options.
EndpointBuilder
,
376
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
377
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
378
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
380
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("refreshRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
381
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
382
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
);
383
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
388
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
389
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
390
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
393
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
401
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
413
options.
EndpointBuilder
,
492
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
493
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
495
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("userId", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
496
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("code", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
497
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("changedEmail", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: true));
498
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
499
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult>>(methodInfo, options.
EndpointBuilder
);
500
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
505
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
506
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
507
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
510
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
517
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
529
options.
EndpointBuilder
,
638
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
639
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
640
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
642
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("resendRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
643
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
644
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
645
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Ok>(methodInfo, options.
EndpointBuilder
);
646
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
651
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
652
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
653
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
656
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
664
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
676
options.
EndpointBuilder
,
757
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
758
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
759
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
761
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("resetRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
762
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
763
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
764
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
769
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
770
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
771
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
774
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
782
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
794
options.
EndpointBuilder
,
873
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
874
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
875
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
877
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("resetRequest", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
878
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
879
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>>(methodInfo, options.
EndpointBuilder
);
880
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
885
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
886
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
887
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
890
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
898
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
910
options.
EndpointBuilder
,
989
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
990
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
991
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
993
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
994
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("tfaRequest", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
995
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
996
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
);
997
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1002
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1003
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1004
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1007
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1015
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1027
options.
EndpointBuilder
,
1108
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1109
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
1111
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1112
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1113
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
);
1114
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1119
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1120
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1121
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1124
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1131
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1143
options.
EndpointBuilder
,
1210
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1211
options.
EndpointBuilder
.Metadata.Add(new System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.RequestDelegateGenerator, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "11.0.0.0"));
1212
options.
EndpointBuilder
.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1214
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("claimsPrincipal", parameters[0], hasTryParse: false, hasBindAsync: false, isOptional: false));
1215
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("infoRequest", parameters[1], hasTryParse: false, hasBindAsync: false, isOptional: false));
1216
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("context", parameters[2], hasTryParse: false, hasBindAsync: false, isOptional: false));
1217
options.
EndpointBuilder
.Metadata.Add(new ParameterBindingMetadata("sp", parameters[3], hasTryParse: false, hasBindAsync: false, isOptional: false));
1218
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
);
1219
return new RequestDelegateMetadataResult { EndpointMetadata = options.
EndpointBuilder
.Metadata.AsReadOnly() };
1224
Debug.Assert(options.
EndpointBuilder
!= null, "EndpointBuilder not found.");
1225
Debug.Assert(options.
EndpointBuilder
.ApplicationServices != null, "ApplicationServices not found.");
1226
Debug.Assert(options.
EndpointBuilder
.FilterFactories != null, "FilterFactories not found.");
1229
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
1237
if (options.
EndpointBuilder
.FilterFactories.Count > 0)
1249
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];