Skip to content

Latest commit

 

History

History
142 lines (131 loc) · 4.44 KB

File metadata and controls

142 lines (131 loc) · 4.44 KB
versionFrom
9.0.0

MemberTypeService Notifications

:::note If you are using Umbraco 8 or any lower version, please refer to the MemberTypeService Events article instead. :::

The MemberTypeService class implements IMemberTypeService. It provides access to operations involving IMemberType

Notification Members Description
MemberTypeSavingNotification
  • IEnumerable<IMemberType> SavedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
  • bool Cancel
Published when MemberTypeService.Save is called in the API.
SavedEntities: Gets the collection of IMemberType objects being saved.
MemberTypeSavedNotification
  • IEnumerable<IMemberType> SavedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
Published when MemberTypeService.Save is called in the API, after the entities has been saved.
NOTE: See here on how to determine if the entity is brand new
SavedEntities: Gets the collection of saved IMemberType objects.
MemberTypeDeletingNotification
  • IEnumerable<IMemberType> DeletedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
  • bool Cancel
Published when MemberTypeService.Delete is called in the API.
DeletedEntities: Gets the collection of IMemberType objects being deleted.
MemberTypeDeletedNotification
  • IEnumerable<IMemberType> DeletedEntities
  • EventMessages Messages
  • IDictionary<string,object> State
Published when MemberTypeService.Delete is called in the API, after the entities has been deleted.
DeletedEntities: Gets the collection of deleted IMemberType objects.
MemberTypeMovingNotification
  • IEnumerable<MoveEventInfo<IMemberType>> MoveInfoCollection
  • EventMessages Messages
  • IDictionary<string,object> State
  • bool Cancel
Published when MemberTypeService.Move is called in the API
MoveInfoCollection will for each moving entity provide:
  1. Entity: Gets the IMemberType object being moved
  2. OriginalPath: The original path the entity is moved from
  3. NewParentId: Gets the Id of the parent the entity will have after it has been moved
MemberTypeMovedNotification
  • IEnumerable<MoveEventInfo<IMemberType>> MoveInfoCollection
  • EventMessages Messages
  • IDictionary<string,object> State
Published when MemberTypeService.Move is called in the API, after the entities has been moved.
MoveInfoCollection will for each moving entity provide:
  1. Entity: Gets the IMemberType object being moved
  2. OriginalPath: The original path the entity is moved from
  3. NewParentId: Gets the Id of the parent the entity will have after it has been moved
MemberTypeChangedNotification
  • IEnumerable<MemberTypeChange<IMemberType>> Changes
  • EventMessages Messages
  • IDictionary<string,object> State
Published when a MemberType is saved or deleted, after the transaction has completed. This is mainly used for caching purposes, and generally not recommended, use Saved and Deleted notifications instead.
Changes will for each item affected by the change prove:
  1. Item: The IMemberType affected by the change.
  2. ChangeTypes: The type of change: Create, Remove, RefreshMain, etc.