Class ResourceCollectionNameOverride
A single resource-type-to-collection-name override registered via
AddResourceCollectionName or discovered by
AddResourceCollectionNames(Assembly). Registered as a DI singleton; the
ResourceCollectionNameRegistry consumes the full enumeration at
activation time.
public sealed record ResourceCollectionNameOverride : IEquatable<ResourceCollectionNameOverride>
- Inheritance
-
ResourceCollectionNameOverride
- Implements
- Inherited Members
- Extension Methods
Constructors
ResourceCollectionNameOverride(string, string)
A single resource-type-to-collection-name override registered via
AddResourceCollectionName or discovered by
AddResourceCollectionNames(Assembly). Registered as a DI singleton; the
ResourceCollectionNameRegistry consumes the full enumeration at
activation time.
public ResourceCollectionNameOverride(string ResourceType, string CollectionName)
Parameters
ResourceTypestringThe resource type name as it appears on Type. Matching is case-insensitive (ordinal).
CollectionNamestringThe collection segment to substitute in the synthesised
ProblemDetails.InstanceURI (for example"people").
Properties
CollectionName
The collection segment to substitute in the synthesised ProblemDetails.Instance
URI (for example "people").
public string CollectionName { get; init; }
Property Value
ResourceType
The resource type name as it appears on Type. Matching is case-insensitive (ordinal).
public string ResourceType { get; init; }