Esempio n. 1
0
 public static RestDataRequest <T> WithData <T>(this RestDataRequest <T> request, T data)
 {
     request.RequestHandlers.Add(new RestDataHandler <T>(data));
     return(request);
 }
Esempio n. 2
0
 public static RestDataRequest <T> WithQueryParameter <T>(this RestDataRequest <T> request, string name, object value = null)
 {
     WithQueryParameter(request as RestRequest, name, value);
     return(request);
 }
Esempio n. 3
0
 public static RestDataRequest <TK> WithParameter <T, TK>(this RestDataRequest <TK> request, Expression <Func <T> > expr)
 {
     WithParameter(request as RestRequest, expr);
     return(request);
 }
Esempio n. 4
0
 public static RestDataRequest <T> WithHeader <T>(this RestDataRequest <T> request, string name, string value)
 {
     WithHeader(request as RestRequest, name, value);
     return(request);
 }
Esempio n. 5
0
 public static RestDataRequest <T> WithParameter <T>(this RestDataRequest <T> request, string token, string value)
 {
     WithParameter(request as RestRequest, token, value);
     return(request);
 }