예제 #1
0
        protected GatewayServiceClient gateway(AuthenticationContext authentication)
        {
            var intercepted = channel.BuildInvoker()
                              .Intercept(new AsyncClientAuthenticator(MemberId, cryptoEngine, authentication));

            return(new GatewayService.GatewayServiceClient(intercepted));
        }
예제 #2
0
 /// <summary>
 /// Creates new unauthenticated client backed by the specified channel.
 /// </summary>
 /// <returns>The unauthenticated.</returns>
 /// <param name="channel">Channel.</param>
 public static UnauthenticatedClient Unauthenticated(ManagedChannel channel)
 {
     return(new UnauthenticatedClient(new GatewayService.GatewayServiceClient(channel.BuildInvoker())));
 }