public async Task <ClientResponse> FlexCacheAsync(FlexCacheType flexCache, string traceNumber = null)
        {
            var item    = flexCache.CopyToBase();
            var xmlBody = new Request {
                Item = item
            };
            var url     = Endpoint.Url();
            var request = new ClientRequest
            {
                Request     = xmlBody,
                TraceNumber = traceNumber,
            };

            return(await SendRequestAsync(url, request));
        }
示例#2
0
 public ClientResponse FlexCache(FlexCacheType flexCache, string traceNumber = null)
 {
     return(_client.FlexCache(flexCache, traceNumber));
 }
示例#3
0
 public async Task <ClientResponse> FlexCacheAsync(FlexCacheType flexCache, string traceNumber = null)
 {
     return(await _client.FlexCacheAsync(flexCache, traceNumber));
 }
 public ClientResponse FlexCache(FlexCacheType flexCache, string traceNumber = null)
 {
     return(FlexCacheAsync(flexCache, traceNumber).GetAwaiter().GetResult());
 }