Copied to clipboard

Flag this post as spam?

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


  • keilo 568 posts 1023 karma points
    Jul 11, 2015 @ 10:15
    keilo
    0

    Compiling contrib v2 example with new 2.1.0 Newsletter dll

    I managed to compile and test the contrib v2 examples, subscription provider etc. with the Newsletter.dll version 2.0

    however when i try to change the reference to the newest 2.1 Newsletter dll, clean and attempt to rebuilt gives the following error, do I need to update something else in the v2 examples as it throws error on the Unsubscribe (default, unmodified contrib example)?

    Error 1 'NewsletterStudioContrib.SubscriptionProviders.TeaCommerceSubscriptionProvider' does not implement inherited abstract member 'NewsletterStudio.Bll.Providers.SubscriptionProviderBase.Unsubscribe(string, string)' F:\NewsletterStudioContrib-master\Newsletter Studio V2\NewsletterStudioContrib\SubscriptionProviders\TeaCommerceSubscriptionProvider.cs 14 18 NewsletterStudioContrib

  • keilo 568 posts 1023 karma points
    Jul 13, 2015 @ 01:25
    keilo
    0

    anyone?

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jul 14, 2015 @ 16:01
    Markus Johansson
    100

    Hi!

    Sorry for taking some time to get back on this one. Summertime you know =D

    Well, as the error says: "NewsletterStudioContrib.SubscriptionProviders.TeaCommerceSubscriptionProvider does not implement inherited abstract member 'NewsletterStudio.Bll.Providers.SubscriptionProviderBase.Unsubscribe(string, string)" there is a missing method in the class.

    So, there was a bug fix with a breaking change in the implementation of the subscription provider in Newsletter Studio version 2.1 - you just need to implement the new overload for the Unsubscribe-method. In this case the provider is more of a "proof of concept" so you should just be able to add something like this to your class:

    public override bool Unsubscribe(string email, string listItemId)
    {
       // Just returns true as this is not implemented. Could be stored as a    property on a Umbraco member or in a custom table.
      return true;
    }
    

    I will update the examples on GitHub but after the summer =D

    Hope this helps =D

Please Sign in or register to post replies

Write your reply to:

Draft