IActivityLogService Interface |
Namespace: CMS.Activities
public interface IActivityLogService
The IActivityLogService type exposes the following members.
Name | Description | |
---|---|---|
Log |
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.
| |
LogWithoutModifiersAndFilters |
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. If you have HttpRequestBase available please
use Log(IActivityInitializer, HttpRequestBase, Boolean) instead.
Method is designed to be used in environment without request e.g. scheduled tasks. After the activity is stored, two events are fired.
| |
RegisterFilter |
Registers global filter which decide if activity should not be logged or otherwise. Filters are called before IActivityInfo is created.
Activity is not logged if at least one filter denies activity. Filters are global, thus they are shared across all instances of the service.
| |
RegisterModifier |
Registers global activity modifier. Modifier is used to update every newly created IActivityInfo. Modifier is called after activity is created
and successfully initialized. Modifiers are global, thus they are shared across all instances of the service.
| |
RegisterValidator |
Registers global activity validator. Validators are used to check whether the processed IActivityInfo is valid and can be logged.
Validators are global, therefore they are shared across all instances of the service.
|