Skybrud Redirect Notifcaitons

I am trying to add notification handles as follows, I can see the Composer is hit but any logging or breakpoints within the Handlers are never hit

using Skybrud.Umbraco.Redirects.Notifications;
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;

namespace Website

public class SkybrudRedirectsComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
        builder.AddNotificationHandler<IRedirectPreLookupNotification, RedirectPreLookupNotificationHandler>();
        builder.AddNotificationHandler<IRedirectPostLookupNotification, RedirectPostLookupNotificationHandler>();
    }
}

public class RedirectPreLookupNotificationHandler : INotificationHandler<IRedirectPreLookupNotification>

public class RedirectPostLookupNotificationHandler : INotificationHandler<IRedirectPostLookupNotification>

Any suggestions?

Thanks
Matt

Umbraco Notifications dont play nice with Interfaces using the concreter types as solved this.


        builder.AddNotificationHandler<RedirectPreLookupNotification, RedirectPreLookupNotificationHandler>();
        builder.AddNotificationHandler<RedirectPostLookupNotification, RedirectPostLookupNotificationHandler>();```

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.