Last active
November 10, 2018 23:39
-
-
Save ssougnez/6945cdaf3669dbe90f3a3c8f6d66ac51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DocumentEventHandler(Include = new[] { "documentTypeA", "documentTypeB" }, Exclude = new[] { "documentTypeC" })] | |
public class DocumentTypeAEventHandler : DocumentEventHandler | |
{ | |
public override void Saved(IContentService contentService, SaveEventArgs<IContent> args) | |
{ | |
// Do stuff | |
} | |
public override void Saving(IContentService contentService, SaveEventArgs<IContent> args) | |
{ | |
// Do stuff | |
} | |
public override void Publishing(IPublishingStrategy strategy, PublishEventArgs<IContent> args) | |
{ | |
// Do stuff | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment