ServiceSpy by jjxtra

<PackageReference Include="ServiceSpy" Version="1.0.1" />


public sealed class ServiceMetadata
Represents metadata for a service
public string Group { get; set; }

Group - this would usually represent an availability zone, region or general geo location

public string HealthCheckPath { get; set; }

Health check path, including leading slash

public string Host { get; set; }

Host, for http(s) goes in the host header

public Guid Id { get; set; }


public IPAddress IPAddress { get; set; }

IP address

public string IPAddressString { get; set; }

Get/set IPAddress as string

public string Name { get; set; }


public string Path { get; set; }


public int Port { get; set; }


public string Version { get; set; }

Version - default is executing assembly version

public ServiceMetadata()

public static ServiceMetadata FromBinary(Stream s, out bool deletion, out string healthCheck)

Get service metadata from binary data

public static IPAddress GetLocalIPAddress()

Get local machine ip

public static bool op_Equality(ServiceMetadata lhs, ServiceMetadata rhs)

public static bool op_Inequality(ServiceMetadata lhs, ServiceMetadata rhs)

Check if this service metadata fully equals another service metadata

public void ToBinary(Stream s, bool deletion = false, string healthCheck = null)

Write service metadata to binary stream