public static RequestConfigManager SetGlobalRequestFormatBinary(this RequestConfigManager configManager) { if (string.IsNullOrEmpty(RequestConfigContext.configContext.Formal)) { RequestConfigContext.configContext.Formal = "Binary"; } return(configManager); }
public static RequestConfigManager SetGlobalRequestSafty(this RequestConfigManager configManager, Func <RequestContext, bool> checkLogic) { RequestConfigContext.configContext.SafetyChecks = checkLogic; return(configManager); }