Copied to clipboard

Flag this post as spam?

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


  • Steve Morgan 1346 posts 4453 karma points c-trib
    Apr 27, 2022 @ 16:18
    Steve Morgan
    0

    Vendr Custom OrderFinalizedNotification Handler WithNotificationEvent

    Hi,

    I've been staring at the documentation and I'm sure I've missed something but I can't get seem to get the correct using statement to make this work.

    Intellisense hasn't come to the rescue and I'm sure I'm being thick...( I did look at your sample site source code but couldn't see the UmbracoBuilderExtensions example class where you actually add this.

    How do I make the WithNotificationEvent method work?

    enter image description here

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Apr 28, 2022 @ 06:41
    Steve Morgan
    0

    Sorry missed some important bits:

    Umbraco version: 9.4.3

    Vendr: v2.1.2

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Apr 28, 2022 @ 07:53
    Matt Brailsford
    100

    Hey Steve,

    All Vendr extension methods (which WithNotificationEvent is one) exist in the Vendr.Extensions namespace so that'll be what's missing.

    Hope this helps

    Matt

  • Steve Morgan 1346 posts 4453 karma points c-trib
    Apr 28, 2022 @ 08:49
    Steve Morgan
    0

    Hi,

    It did - gave me the clue I needed.

    I have two projects in the solution - a website and a code project.

    In the code project I only had the Vendr.Core and Vendr.Umbraco packages. The website project has the Vendr root package as well but this wasn't in the code project.

    Seems like these extension methods are only in the root package. Adding this has resolved it - thanks Matt.

    I was confused as I added Vendr.Extensions - it was greyed out and didn't resolve the problem so this namespace must exist in one of the other packages too. Hope this helps someone else.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Apr 28, 2022 @ 09:12
    Matt Brailsford
    1

    Generally speaking the Vendr nuget package is just a package to pull in the c# and the UI code together. If you have a class library project you probably won't want a dependency on Vendr. I think in your situation you'll probably want a dependency on Vendr.Umbraco.Startup instead as this is where all our registration logic lives.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft