I am calling an API that requires an MD5 hash of the body of the request in the request's header.
I am using RestSharp to send the requests. Normally I can check the Request.Parameters for the Body parameter and hash the value of the parameter before calling Execute.
Although, after calling AddFile the body parameter is empty and appears to stay empty until the content is prepared before sending the request. (Since files are stored separately)
Is there anyway to read the body content of the RestRequest after the multipart string has been generated but before the request is sent so I can add the MD5 hash to the header of the request?