Class ServiceMoniker
- Namespace
- Nerdbank.JsonRpc.BrokeredServices
- Assembly
- Nerdbank.JsonRpc.dll
Identifies a service contract independently of its location or implementation.
[GenerateShape]
public sealed record ServiceMoniker : IShapeable<ServiceMoniker>, IEquatable<ServiceMoniker>
- Inheritance
-
ServiceMoniker
- Implements
- Inherited Members
Constructors
ServiceMoniker(string, Version?)
Initializes a new instance of the ServiceMoniker class.
public ServiceMoniker(string name, Version? version = null)
Parameters
namestringThe nonempty, ordinal case-sensitive service name.
versionVersionThe contract version, or null for an unversioned contract.
Properties
Name
Gets the service name.
public string Name { get; }
Property Value
Version
Gets the contract version.
public Version? Version { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.