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