Exemplo n.º 1
0
 private Stream SerializeAndUpload <T>(string url, T requestData, List <Dictionary <string, string> > headers, string token = null)
 {
     try
     {
         var requestStream = _serializer.Serialize(requestData);
         return(_uploader.UploadStream(url, requestStream, headers, token));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }