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