Class InfoObjectAfterUpdateEvent<TInfo>
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
An event invoked after an info object of type TInfo
is updated.
public class InfoObjectAfterUpdateEvent<TInfo> : InfoObjectAfterUpdateEvent, IInfoObjectEvent, IEventState where TInfo : BaseInfo
Type Parameters
TInfo
Type of info object that was updated.
- Inheritance
-
objectInfoObjectAfterUpdateEvent<TInfo>
- Implements
- Inherited Members
- Extension Methods
Remarks
Implement a corresponding event handler by inheriting IInfoObjectEventHandler<TInfoObjectEvent> and register it using AddInfoObjectEventHandler<TInfoObjectEvent, THandler>(IServiceCollection).
Using this approach is recommended over Update as it allows to provide a dedicated code for synchronous and asynchronous execution paths.
Constructors
InfoObjectAfterUpdateEvent(TInfo, EventStateStore)
Initializes a new instance of the InfoObjectAfterUpdateEvent<TInfo> class using the infoObject
provided.
public InfoObjectAfterUpdateEvent(TInfo infoObject, EventStateStore state)
Parameters
infoObject
TInfoInfo object that was updated.
state
EventStateStoreState data to initialize the event with.
Exceptions
- ArgumentNullException
Thrown when
infoObject
is null.
Properties
InfoObject
Gets the info object that was updated.
public TInfo InfoObject { get; }
Property Value
- TInfo
See Also
InfoObjectBeforeUpdateEvent<TInfo>