/// <summary>
 /// Defines the <see cref="Uri"/> for this client connection.
 /// </summary>
 /// <param name="serviceHost">The service host.</param>
 /// <param name="sessionId">The session unique identifier.</param>
 /// <returns></returns>
 public static Uri ServiceUri(string serviceHost, string sessionId)
 {
     return(new Uri("http://{0}:{1}/SessionBackend-{2}".FormatWith
                    (
                        serviceHost,
                        (int)WcfService.SessionBackend,
                        sessionId,
                        WcfBinding.CreateCompressionBinding()
                    )));
 }
 /// <summary>
 /// Prevents a default instance of the <see cref="SessionProxyBackendClient"/> class from being created.
 /// </summary>
 /// <param name="endpoint">The endpoint.</param>
 private SessionProxyBackendClient(Uri endpoint)
     : base(WcfBinding.CreateCompressionBinding(), endpoint)
 {
 }