ServiceDescriptor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Service Hub service descriptor. This class identifies a service hub service to run.
public ref class ServiceDescriptor sealed : IEquatable<Microsoft::ServiceHub::Client::ServiceDescriptor ^>
[Newtonsoft.Json.JsonObject(MemberSerialization=Newtonsoft.Json.MemberSerialization.OptIn)]
public sealed class ServiceDescriptor : IEquatable<Microsoft.ServiceHub.Client.ServiceDescriptor>
[<Newtonsoft.Json.JsonObject(MemberSerialization=Newtonsoft.Json.MemberSerialization.OptIn)>]
type ServiceDescriptor = class
interface IEquatable<ServiceDescriptor>
Public NotInheritable Class ServiceDescriptor
Implements IEquatable(Of ServiceDescriptor)
- Inheritance
-
ServiceDescriptor
- Attributes
-
Newtonsoft.Json.JsonObjectAttribute
- Implements
Constructors
ServiceDescriptor(String) |
Initializes a new instance of the ServiceDescriptor class with the given service name. |
Properties
HostGroup |
Gets or sets a host group for the service. Same service with different host groups will be hosted on different hosts. Same service with the same host group (or no host group at all) will be hosted on the same host. |
IsServiceNameOnly |
Gets a value indicating whether service name only is enough to request the service. |
Name |
Gets the service name. |
ServiceLocation |
Gets or sets the location of the service config. This includes the path to the config file as well as the name of the file itself. |
Version |
Gets or sets the version of the service or the version expected by the client. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. |
Equals(ServiceDescriptor) |
Indicates whether the current object is equal to another object of the same type. |
GetHashCode() |
Get object's hash code. |
GetServiceKey() | |
HasHostGroup() | |
ToString() |
Gets the string representation of the service descriptor. |