Class ProtoCapabilityDescriptor
Describes one thing the host is composed of: a capability or an adapter behind it. Descriptors are metadata, not lifecycle - they record what an application is made of for the run overview, the trace and the report. Register one with AddCapability(IProtoHostBuilder, ProtoCapabilityDescriptor).
public sealed record ProtoCapabilityDescriptor : IEquatable<ProtoCapabilityDescriptor>
- Inheritance
-
ProtoCapabilityDescriptor
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoCapabilityDescriptor(string, string, string)
Describes one thing the host is composed of: a capability or an adapter behind it. Descriptors are metadata, not lifecycle - they record what an application is made of for the run overview, the trace and the report. Register one with AddCapability(IProtoHostBuilder, ProtoCapabilityDescriptor).
public ProtoCapabilityDescriptor(string Name, string Kind, string Source)
Parameters
Properties
Instance
Identifies one instance of a capability that can appear several times - the name of an
AddAspNetCoreServer server, an application a device transport belongs to. Two instances
are two capabilities: dropping one does not drop the other. null for a
capability that describes the host as a whole, where two equal descriptors are one capability.
HasCapability(string, string?) still matches Name, not the
instance; HasCapability(string, string?, string?) can narrow by both.
public string? Instance { get; init; }
Property Value
Kind
public string Kind { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Source
public string Source { get; init; }