Copied to clipboard

Flag this post as spam?

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


  • Johannes Lantz 156 posts 838 karma points c-trib
    Feb 22, 2022 @ 14:01
    Johannes Lantz
    0

    Composition for Vendr v2.0.1 in Umbraco v8

    Hi!

    I am having trouble finding the namespace for

    eg

    Compositions

    composition.WithNotificationEvent<OrderFinalizedNotification>()
    
    composition.WithPriceAdjusters()
    

    I am just getting this error:

    Error   CS1061  'Composition' does not contain a definition for 'WithPriceAdjusters' and no accessible extension method 'WithPriceAdjusters' accepting a first argument of type 'Composition' could be found (are you missing a using directive or an assembly reference?)
    

    I have been trying to find it via the documentation but wihout any luck. I have Vendr.Core & Vendr.Common installed.

    Thanks in advance!

    //Johannes

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Feb 22, 2022 @ 14:12
    Matt Brailsford
    100

    Hi Johannes,

    All composition extensions are in the Vendr.Extensions namespace within the Vendr.Umbraco.Startup project so you'll need to make sure you have a reference to that nuget package and have a using statement for Vendr.Extensions.

    Matt

  • Johannes Lantz 156 posts 838 karma points c-trib
    Feb 22, 2022 @ 14:27
    Johannes Lantz
    0

    Cheers Matt! That did it!

    //Johannes

Please Sign in or register to post replies

Write your reply to:

Draft