Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adam Nelson 27 posts 186 karma points c-trib
    Dec 10, 2016 @ 21:05
    Adam Nelson
    0

    Custom implementation of NotificationService

    Hi there,

    On Umbraco 7.1.8 and looking to use notifications / send to publish as a workflow mechanism for writers and editors.

    But for a few reasons I'd rather not use the existing SMTP implementation of sending notifications in NotificationService.

    Is there a way I can inject a custom implementation of INotificationService into Umbraco?

    Specifically I'd like to provide my own implementation of:

    INotificationService.SendNotifications(IUser operatingUser, IUmbracoEntity entity, string action, string actionName, HttpContextBase http, Func<IUser, string[], string> createSubject, Func<IUser, string[], string> createBody)

    I suppose I could use reflection to set the private INotificationService field in ServiceContext, but is there a better way?

    Cheers, Adam.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies