Class InstanceRegistrationDiagnosticsEntry
Describes an instance registration currently configured on a Mocker instance.
Implements
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Core.dll
Syntax
public sealed record InstanceRegistrationDiagnosticsEntry : IEquatable<InstanceRegistrationDiagnosticsEntry>
Constructors
InstanceRegistrationDiagnosticsEntry(string, string?, string, bool, IReadOnlyList<string>)
Describes an instance registration currently configured on a Mocker instance.
Declaration
public InstanceRegistrationDiagnosticsEntry(string RequestedType, string? ServiceKey, string InstanceType, bool HasFactory, IReadOnlyList<string> ArgumentSummaries)
Parameters
| Type | Name | Description |
|---|---|---|
| string | RequestedType | The requested service type that resolved through an instance registration. |
| string | ServiceKey | The formatted DI-style service key when the registration is keyed. |
| string | InstanceType | The concrete instance type produced by the registration. |
| bool | HasFactory | True when the registration used a factory delegate. |
| IReadOnlyList<string> | ArgumentSummaries | A summary of any stored registration arguments. |
Properties
ArgumentSummaries
A summary of any stored registration arguments.
Declaration
public IReadOnlyList<string> ArgumentSummaries { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
HasFactory
True when the registration used a factory delegate.
Declaration
public bool HasFactory { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
InstanceType
The concrete instance type produced by the registration.
Declaration
public string InstanceType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
RequestedType
The requested service type that resolved through an instance registration.
Declaration
public string RequestedType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ServiceKey
The formatted DI-style service key when the registration is keyed.
Declaration
public string? ServiceKey { get; init; }
Property Value
| Type | Description |
|---|---|
| string |