Interface IActivityLogValidator
- Namespace
- CMS.Activities
- Assembly
- CMS.Activities.dll
Provides method for validating the IActivityInfo and determining, whether the IActivityInfo is valid to be logged or not. Validator can be register as global validator for all activities being logged and it is used in Log(IActivityInitializer) or LogWithoutModifiersAndFilters(IActivityInitializer).
public interface IActivityLogValidator
- Extension Methods
Methods
IsValid(IActivityInfo)
Determines whether the given activity
is valid or not, e.g. checks consistency of
activity properties.
bool IsValid(IActivityInfo activity)
Parameters
activity
IActivityInfoActivity to be validated
Returns
- bool
True if validation check was passed; otherwise, false