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