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),
45 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 (21)
ApiResponseTypeProviderTest.cs (21)
23actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 145actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 202actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 295actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 351actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 392actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 399actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 445actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 451actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 487actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 494actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 538actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 545actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(InvalidTimeZoneException)); 584actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 591actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(void)); 631actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 637actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails)); 681actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 687actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails)); 713actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 717actionDescriptor.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);