Namespace Umbraco.Cms.Core.Events
Classes
CancellableEnumerableObjectEventArgs<TEventObject>
Represents event data, for events that support cancellation, and expose impacted objects.
CancellableEventArgs
Represents event data for events that support cancellation.
CancellableObjectEventArgs
Provides a base class for classes representing event data, for events that support cancellation, and expose an impacted object.
CancellableObjectEventArgs<TEventObject>
Represent event data, for events that support cancellation, and expose an impacted object.
ContentCacheEventArgs
CopyEventArgs<TEntity>
DeleteEventArgs
DeleteEventArgs<TEntity>
EventAggregator
Defines an object that channels events from multiple objects into a single object to simplify registration for clients.
EventDefinition
EventDefinition<TEventArgs>
EventDefinition<TSender, TEventArgs>
EventDefinitionBase
EventExtensions
Extension methods for cancellable event operations
EventMessage
An event message
EventMessages
Event messages collection
EventNameExtractor
There is actually no way to discover an event name in c# at the time of raising the event. It is possible to get the event name from the handler that is being executed based on the event being raised, however that is not what we want in this case. We need to find the event name before it is being raised - you would think that it's possible with reflection or anything but that is not the case, the delegate that defines an event has no info attached to it, it is literally just an event. So what this does is take the sender and event args objects, looks up all public/static events on the sender that have a generic event handler with generic arguments (but only) one, then we match the type of event arguments with the ones being passed in. As it turns out, in our services this will work for the majority of our events! In some cases it may not work and we'll have to supply a string but hopefully this saves a bit of magic strings. We can also write tests to validate these are all working correctly for all services.
EventNameExtractorResult
ExportedMemberEventArgs
MacroErrorEventArgs
MigrationEventArgs
MoveEventArgs<TEntity>
MoveEventInfo<TEntity>
NewEventArgs<TEntity>
PublishEventArgs<TEntity>
QueuingEventDispatcher
An IEventDispatcher that queues events, and raise them when the scope exits and has been completed.
QueuingEventDispatcherBase
An IEventDispatcher that queues events.
RecycleBinEventArgs
RelateOnCopyNotificationHandler
RelateOnTrashNotificationHandler
RolesEventArgs
RollbackEventArgs<TEntity>
SaveEventArgs<TEntity>
ScopedNotificationPublisher
SendEmailEventArgs
SendToPublishEventArgs<TEntity>
ServiceFactoryExtensions
Extensions for ServiceFactory.
SupersedeEventAttribute
This is used to know if the event arg attributed should supersede another event arg type when tracking events for the same entity. If one event args supersedes another then the event args that have been superseded will mean that the event will not be dispatched or the args will be filtered to exclude the entity.
TransientEventMessagesFactory
A simple/default transient messages factory
UserGroupWithUsers
UserNotificationsHandler
UserNotificationsHandler.Notifier
This class is used to send the notifications
Interfaces
IDeletingMediaFilesEventArgs
IEventAggregator
Defines an object that channels events from multiple objects into a single object to simplify registration for clients.
IEventDefinition
IEventDispatcher
Dispatches events from within a scope.
IEventMessagesAccessor
IEventMessagesFactory
Event messages factory
INotificationAsyncHandler<TNotification>
Defines a handler for a async notification.
INotificationHandler<TNotification>
Defines a handler for a notification.
IScopedNotificationPublisher
Enums
EventDefinitionFilter
The filter used in the IEventDispatcher GetEvents method which determines how the result list is filtered
EventMessageType
The type of event message
EventNameExtractorError
Delegates
ServiceFactory
A factory method used to resolve all services.
For multiple instances, it will resolve against