protected GatewayServiceClient gateway(AuthenticationContext authentication) { var intercepted = channel.BuildInvoker() .Intercept(new AsyncClientAuthenticator(MemberId, cryptoEngine, authentication)); return(new GatewayService.GatewayServiceClient(intercepted)); }
/// <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()))); }