ReadAsString() private method

private ReadAsString ( string name ) : string
name string
return string
Esempio n. 1
0
        private HttpContent CreateRequestContent(string payload)
        {
            string content = EmbeddedResource.ReadAsString(payload);

            return(new StringContent(content, Encoding.UTF8, MyGetWebHookReceiver.MediaType));
        }
Esempio n. 2
0
        private HttpContent CreateRequestContent(string payload)
        {
            string content = EmbeddedResource.ReadAsString(payload);

            return(new StringContent(content, Encoding.UTF8, "application/json"));
        }