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?
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.
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.
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?
Sorry missed some important bits:
Umbraco version: 9.4.3
Vendr: v2.1.2
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
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.
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 onVendr
. I think in your situation you'll probably want a dependency onVendr.Umbraco.Startup
instead as this is where all our registration logic lives.Matt
is working on a reply...