Table of Contents

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

name string

The nonempty, ordinal case-sensitive service name.

version Version

The contract version, or null for an unversioned contract.

Properties

Name

Gets the service name.

public string Name { get; }

Property Value

string

Version

Gets the contract version.

public Version? Version { get; }

Property Value

Version

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.