Ejemplo n.º 1
0
 public static RequestConfigManager SetGlobalRequestFormatBinary(this RequestConfigManager manager)
 {
     if (string.IsNullOrEmpty(RequestConfigContext.ConfigContext.Format))
     {
         RequestConfigContext.ConfigContext.Format = "Binary";
     }
     return(manager);
 }
Ejemplo n.º 2
0
 public static RequestConfigManager SetGlobalRequestSafetyCheckLogic(this RequestConfigManager manager, Func <RequestContext, bool> func)
 {
     RequestConfigContext.ConfigContext.SaftyCheck += func;
     return(manager);
 }