Table of Contents

Class ResourceCollectionNameOverride

Namespace
Trellis.Asp
Assembly
Trellis.Asp.dll

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

ResourceType string

The resource type name as it appears on Type. Matching is case-insensitive (ordinal).

CollectionName string

The collection segment to substitute in the synthesised ProblemDetails.Instance URI (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

string

ResourceType

The resource type name as it appears on Type. Matching is case-insensitive (ordinal).

public string ResourceType { get; init; }

Property Value

string