/// <summary> /// Class scrubbing for List items /// </summary> /// <param name="obj"></param> /// <returns></returns> private Task <object> ScrubClass(object obj) { ShamWowEngine process = new ShamWowEngine(obj, _mode, _router.GetValues()) .Scrub(); _router.MergeStateValues(process.GetStateValues()); ProcessManifestItems(process.GetManifest().documentManifestInfos); return(Task.FromResult(process.CleanData())); }
/// <summary> /// Sets the class values /// </summary> /// <param name="property"></param> /// <returns></returns> private Task ScrubClass(PropertyInfo property) { ShamWowEngine process = new ShamWowEngine(property.GetValue(_dataInstance), _mode, _router.GetValues()) .Scrub(); _router.MergeStateValues(process.GetStateValues()); property.SetValue(_dataInstance, process.CleanData()); ProcessManifestItems(process.GetManifest().documentManifestInfos); return(Task.CompletedTask); }