public RestRequest(HttpMethod method, string path, string requestBody, ContentTypeValues contentType,
     IDictionary<string, string> additionalHeaders)
 {
     SDK.Net.ContentTypeValues value = (SDK.Net.ContentTypeValues) Enum.Parse(typeof(SDK.Net.ContentTypeValues), contentType.ToString());
     Request = new SDK.Rest.RestRequest(new System.Net.Http.HttpMethod(method.Method), path, requestBody, value, new Dictionary<string, string>(additionalHeaders));
 }
Esempio n. 2
0
 public RestRequest(HttpMethod method, string path, string requestBody, ContentTypeValues contentType,
                    IDictionary <string, string> additionalHeaders)
 {
     SDK.Net.ContentTypeValues value = (SDK.Net.ContentTypeValues)Enum.Parse(typeof(SDK.Net.ContentTypeValues), contentType.ToString());
     Request = new SDK.Rest.RestRequest(new System.Net.Http.HttpMethod(method.Method), path, requestBody, value, new Dictionary <string, string>(additionalHeaders));
 }
 internal RestRequest(SDK.Rest.RestRequest request)
 {
     Request = request;
 }
Esempio n. 4
0
 internal RestRequest(SDK.Rest.RestRequest request)
 {
     Request = request;
 }