public static async Task <IPOS> CreatePosAsync(HttpPosOptions options) { var connectionhandler = new HttpProxyConnectionHandler <IPOS>(new HttpPos(options)); if (options.RetryPolicyOptions != null) { var retryPolicyHelper = new RetryPolicyHandler <IPOS>(options.RetryPolicyOptions, connectionhandler); return(new PosRetryProxyClient(retryPolicyHelper)); } else { return(await connectionhandler.GetProxyAsync()); } }
public static async Task <IDESSCD> CreateSSCDAsync(ClientOptions options) { var connectionhandler = new HttpProxyConnectionHandler <IDESSCD>(new HttpDESSCD(options)); if (options.RetryPolicyOptions != null) { var retryPolicyHelper = new RetryPolicyHandler <IDESSCD>(options.RetryPolicyOptions, connectionhandler); return(new DESSCDRetryProxyClient(retryPolicyHelper)); } else { return(await connectionhandler.GetProxyAsync()); } }