Interface IActivityLogService
- Namespace
- CMS.Activities
- Assembly
- CMS.Activities.dll
Provides possibility to log activities.
public interface IActivityLogService
- Extension Methods
Methods
Log(IActivityInitializer)
Logs given activity. Registered IActivityLogFilter are checked, activity is further processed only if all filters allow it.
Then IActivityInfo is created and activityInitializer
is called.
Afterwards all registered modifiers are applied to the IActivityInfo. Finally the IActivityInfo is validated by registered IActivityLogValidator.
Activity is stored only if it is valid. After the activity is stored, two events are fired.
void Log(IActivityInitializer activityInitializer)
Parameters
activityInitializer
IActivityInitializerActivity initializer used to initialize logged activity.
LogWithoutModifiersAndFilters(IActivityInitializer)
Logs activity initialized by activityInitializer
directly to the database. Implementation does not check IActivityLogFilter
and does not use IActivityModifier. Final validation by IActivityLogValidator is performed.
Method is designed to be used in environment without request e.g. scheduled tasks. After the activity is stored, two events are fired.
void LogWithoutModifiersAndFilters(IActivityInitializer activityInitializer)
Parameters
activityInitializer
IActivityInitializerActivity initializer used to initialize logged activity