3 writes to Properties
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\ActionDescriptor.cs (1)
21Properties = new Dictionary<object, object?>();
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
58Properties = applicationModel.Properties,
Infrastructure\PageActionDescriptorProvider.cs (1)
105Properties = new Dictionary<object, object?>(model.Properties),
44 references to Properties
ApplicationModelWebSite (5)
Controllers\ApplicationModelController.cs (2)
14return ControllerContext.ActionDescriptor.Properties["description"].ToString(); 20return ControllerContext.ActionDescriptor.Properties["description"].ToString();
Controllers\HomeController.cs (2)
13return ControllerContext.ActionDescriptor.Properties["description"].ToString(); 19return ControllerContext.ActionDescriptor.Properties["source"].ToString() + " - " + helloWorld;
Controllers\LicenseController.cs (1)
13return ControllerContext.ActionDescriptor.Properties["license"].ToString();
BasicWebSite (1)
Controllers\HomeController.cs (1)
107return ControllerContext.ActionDescriptor.Properties["description"].ToString();
Microsoft.AspNetCore.Mvc.Abstractions (4)
Abstractions\ActionDescriptorExtensions.cs (4)
12/// Gets the value of a property from the <see cref="ActionDescriptor.Properties"/> collection 22if (actionDescriptor.Properties.TryGetValue(typeof(T), out var value)) 33/// Sets the value of an property in the <see cref="ActionDescriptor.Properties"/> collection using 48actionDescriptor.Properties[typeof(T)] = value;
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (2)
40action.Properties.TryGetValue(typeof(ApiConventionResult), out var result)) 48if (action.Properties.TryGetValue(typeof(ProducesErrorResponseTypeAttribute), out result))
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (20)
ApiResponseTypeProviderTest.cs (20)
23actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 145actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 235actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 291actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 332actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 339actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 385actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 391actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 427actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 434actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 478actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 485actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(InvalidTimeZoneException)); 524actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 531actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(void)); 571actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 577actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails)); 621actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 627actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails)); 653actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 657actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails));
Microsoft.AspNetCore.Mvc.Core (7)
ApiExplorer\ApiDescriptionActionData.cs (1)
8/// <see cref="Abstractions.ActionDescriptor.Properties"/>.
ApplicationModels\ActionModel.cs (1)
145/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
ApplicationModels\ApplicationModel.cs (1)
51/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
ApplicationModels\ControllerActionDescriptorBuilder.cs (3)
153actionDescriptor.Properties[item.Key] = item.Value; 158actionDescriptor.Properties[item.Key] = item.Value; 163actionDescriptor.Properties[item.Key] = item.Value;
ApplicationModels\ControllerModel.cs (1)
134/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (3)
81Assert.Equal("application", descriptors.Single().Properties["test"]); 107Assert.Equal("controller", descriptors.Single().Properties["test"]); 134Assert.Equal("action", descriptors.Single().Properties["test"]);
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\PageApplicationModel.cs (1)
43actionDescriptor.Properties,
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (1)
90Assert.Same(pageApplicationModel.Properties, actual.Properties);