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
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
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
anyone?
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:
I will update the examples on GitHub but after the summer =D
Hope this helps =D
is working on a reply...