Exemplo n.º 1
0
 public static RestDataRequest <T> WithData <T>(this RestDataRequest <T> request, T data)
 {
     request.RequestHandlers.Add(new RestDataHandler <T>(data));
     return(request);
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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);
 }