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