public static void EndValidationGlobalStage(this ValidationContext context, ValidationGlobalStage globalStage) { ValidationGlobalStage validationGlobalStage = GetValidationGlobalStage(context, "__ValidationGlobalStage"); ValidationGlobalStage newStage = (ValidationGlobalStage)Util.ClearFlag(globalStage, validationGlobalStage); context.SetCacheValue("__ValidationGlobalStage", new ValidationGlobalStageImpl(newStage)); }
public static void BeginValidationGlobalStage(this ValidationContext context, ValidationGlobalStage globalStage) { ValidationGlobalStage currentStage = GetValidationGlobalStage(context); ValidationGlobalStage newStage = (ValidationGlobalStage)Util.SetFlag(globalStage, currentStage); context.SetCacheValue("__ValidationGlobalStage", new ValidationGlobalStageImpl(newStage)); }
public ValidationGlobalStageImpl(ValidationGlobalStage current) { Current = current; }
public static bool IsInGlobalStage(this ValidationContext context, ValidationGlobalStage globalStage) { ValidationGlobalStage validationGlobalStage = GetValidationGlobalStage(context); return(Util.IsFlagSet(globalStage, validationGlobalStage)); }