コード例 #1
0
        Response makeRequest(HttpOptions httpOptions)
        {
            var request = _requestBuilder.Build(httpOptions);

            var response = (HttpWebResponse)request.GetResponse();

            return(_responseBuilder.Build(response));
        }
コード例 #2
0
{ public static void Main()
  {
      dynamic dynamicString = "{ \"test\" : \"value\" }";
      string  json          = "{ \"test\" : \"value\" }";
      var     test          = new HttpWebRequestBuilder();

      test.SetRequestType();
      //test.SetBody(json); //still works
      test.SetBody(dynamicString);           // works also now
      var b = test.Build();
      var s = b.ExtensionMethod();

      Console.WriteLine(s);
  }