/// <summary>
 /// Create new key
 /// </summary>
 /// <param name="endpoint"></param>
 public ConnectionIdentifier(EndpointModel endpoint)
 {
     if (endpoint == null)
     {
         throw new ArgumentNullException(nameof(endpoint));
     }
     Connection = new ConnectionModel {
         Endpoint = endpoint.Clone()
     };
     _hash = Connection.CreateConsistentHash();
 }
 /// <summary>
 /// Create new key
 /// </summary>
 /// <param name="endpoint"></param>
 public EndpointIdentifier(EndpointModel endpoint)
 {
     Endpoint = endpoint?.Clone() ??
                throw new ArgumentNullException(nameof(endpoint));
     _hash = Endpoint.CreateConsistentHash();
 }