1 write to Properties
Microsoft.Extensions.Hosting.Abstractions (1)
HostBuilderContext.cs (1)
23Properties = properties;
16 references to Properties
Microsoft.AspNetCore (2)
BootstrapHostBuilder.cs (1)
39public IDictionary<object, object> Properties => Context.Properties;
ConfigureHostBuilder.cs (1)
36public IDictionary<object, object> Properties => _context.Properties;
Microsoft.AspNetCore.Hosting (9)
GenericHost\GenericWebHostBuilder.cs (5)
55var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)]; 218var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)]; 236context.Properties[_startupKey] = instance; 307var instance = context.Properties[_startupKey]; 308var builder = (ConfigureContainerBuilder)context.Properties[typeof(ConfigureContainerBuilder)];
GenericHost\SlimWebHostBuilder.cs (1)
31var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)];
GenericHost\WebHostBuilderBase.cs (3)
76if (!context.Properties.TryGetValue(typeof(WebHostBuilderContext), out var contextVal)) 86context.Properties[typeof(WebHostBuilderContext)] = webHostBuilderContext; 87context.Properties[typeof(WebHostOptions)] = options;
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
2189Assert.Equal("world", context.Properties["hello"]); 2195Assert.Equal("world", context.Properties["hello"]); 2201Assert.Equal("world", context.Properties["hello"]);
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (2)
188IDictionary<object, object> IHostApplicationBuilder.Properties => _hostBuilderContext.Properties; 340public IDictionary<object, object> Properties => _hostApplicationBuilder._hostBuilderContext.Properties;