5 implementations of Properties
Microsoft.AspNetCore (1)
WebApplication.cs (1)
81IDictionary<string, object?> IApplicationBuilder.Properties => Properties;
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
103public IDictionary<string, object?> Properties { get; }
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
MapPathMiddlewareTests.cs (1)
254public IDictionary<string, object?> Properties => throw new NotImplementedException();
UsePathBaseExtensionsTests.cs (1)
53public IDictionary<string, object?> Properties => _wrappedBuilder.Properties;
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisBuilder.cs (1)
37public IDictionary<string, object?> Properties
45 references to Properties
Microsoft.AspNetCore (10)
WebApplication.cs (1)
215newBuilder.Properties.Remove(GlobalEndpointRouteBuilderKey);
WebApplicationBuilder.cs (9)
395if (app.Properties.TryGetValue(EndpointRouteBuilderKey, out var priorRouteBuilder)) 397app.Properties.Remove(EndpointRouteBuilderKey); 411app.Properties.Add(WebApplication.GlobalEndpointRouteBuilderKey, _builtApplication); 421_builtApplication.Properties[UseRoutingKey] = app.Properties[UseRoutingKey]; 426app.Properties[EndpointRouteBuilderKey] = localRouteBuilder; 469app.Properties[item.Key] = item.Value; 473app.Properties.Remove(WebApplication.GlobalEndpointRouteBuilderKey); 478app.Properties[EndpointRouteBuilderKey] = priorRouteBuilder; 499app.Properties.TryGetValue(MiddlewareDescriptionsKey, out var destinationValue) &&
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryApplicationBuilderExtensions.cs (1)
26builder.Properties[AntiforgeryMiddlewareSetKey] = true;
Microsoft.AspNetCore.Authentication (1)
AuthAppBuilderExtensions.cs (1)
24app.Properties[AuthenticationMiddlewareSetKey] = true;
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationAppBuilderExtensions.cs (1)
32app.Properties[AuthorizationMiddlewareSetKey] = true;
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointDataSource.cs (1)
141builder.Properties[ResourceCollectionKey] = resourceCollection;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
25if (applicationBuilder.Properties[ResourceCollectionKey] is ResourceAssetCollection assetMap)
Microsoft.AspNetCore.Diagnostics (7)
DeveloperExceptionPage\DeveloperExceptionPageExtensions.cs (2)
26app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware"; 46app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware";
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
111app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware"; 114if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
src\Shared\Reroute.cs (2)
16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc) 21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
StatusCodePage\StatusCodePagesExtensions.cs (1)
150if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
Microsoft.AspNetCore.Http.Abstractions (4)
Extensions\UsePathBaseExtensions.cs (1)
33if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
IApplicationBuilder.cs (1)
40/// Creates a new <see cref="IApplicationBuilder"/> that shares the <see cref="Properties"/> of this
src\Shared\Reroute.cs (2)
16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc) 21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UsePathBaseExtensionsTests.cs (1)
53public IDictionary<string, object?> Properties => _wrappedBuilder.Properties;
Microsoft.AspNetCore.Http.Tests (1)
ApplicationBuilderTests.cs (1)
163builder2.Properties["test"] = "value2";
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersExtensions.cs (2)
31if (!builder.Properties.ContainsKey(ForwardedHeadersAdded)) 33builder.Properties[ForwardedHeadersAdded] = true;
Microsoft.AspNetCore.MiddlewareAnalysis (2)
AnalysisBuilder.cs (1)
39get { return InnerBuilder.Properties; }
AnalysisMiddleware.cs (1)
26/// The name of the next middleware in the pipeline. This name is typically retrieved from <see cref="Builder.IApplicationBuilder.Properties"/>
Microsoft.AspNetCore.Rewrite (3)
RewriteBuilderExtensions.cs (1)
48if (app.Properties.TryGetValue(RerouteHelper.GlobalRouteBuilderKey, out var routeBuilder) && routeBuilder is not null)
src\Shared\Reroute.cs (2)
16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc) 21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
Microsoft.AspNetCore.Routing (5)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (5)
46if (builder.Properties.TryGetValue(GlobalEndpointRouteBuilderKey, out var obj)) 50builder.Properties[EndpointRouteBuilder] = endpointRouteBuilder; 55builder.Properties[EndpointRouteBuilder] = endpointRouteBuilder; 60builder.Properties.TryAdd(UseRoutingKey, (object)UseRouting); 131if (!app.Properties.TryGetValue(EndpointRouteBuilder, out var obj))
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (3)
1968Assert.False(newBuilder.Properties.TryGetValue(WebApplication.GlobalEndpointRouteBuilderKey, out _)); 2018((IApplicationBuilder)app).Properties["didsomething"] = true; 2940var val = app.Properties["didsomething"];
WebHostTests.cs (1)
71Assert.True(app.Properties.ContainsKey("ForwardedHeadersAdded"), "Forwarded Headers");
MiddlewareAnalysisSample (1)
Startup.cs (1)
57app.Properties["analysis.NextMiddlewareName"] = "HomePage";