public static async Task <IPOS> CreatePosAsync(GrpcClientOptions options)
        {
            var connectionhandler = new GrpcProxyConnectionHandler <IPOS>(options);

            if (options.RetryPolicyOptions != null)
            {
                var retryPolicyHelper = new RetryPolicyHandler <IPOS>(options.RetryPolicyOptions, connectionhandler);
                return(new PosRetryProxyClient(retryPolicyHelper));
            }
            else
            {
                return(await connectionhandler.GetProxyAsync());
            }
        }
Esempio n. 2
0
 public GrpcProxyConnectionHandler(GrpcClientOptions options)
 {
     _options = options;
 }