Umbraco Forms Workflows, MembershipHelper and Dependency Injection
We are using Umbraco Forms Workflows to create members and running into a few problems. The first one being that we need to get an instance of the MembershipHelper, we have tried injecting the helper but Lightning Inject throws an error.
Why is MembershipHelper not available via DI in Umbraco Forms Workflows and what workaround would be best for this?
Did find a solution to inject the MembershipHelper in a workflow via DI?
We use member = Umbraco.Web.Composing.Current.UmbracoHelper.MembershipHelper.GetCurrentMember();
. While this works, this gives a obselete warning.
Umbraco Forms Workflows, MembershipHelper and Dependency Injection
We are using Umbraco Forms Workflows to create members and running into a few problems. The first one being that we need to get an instance of the MembershipHelper, we have tried injecting the helper but Lightning Inject throws an error.
Why is MembershipHelper not available via DI in Umbraco Forms Workflows and what workaround would be best for this?
Hi No1sBothered,
Did find a solution to inject the MembershipHelper in a workflow via DI? We use
member = Umbraco.Web.Composing.Current.UmbracoHelper.MembershipHelper.GetCurrentMember();
. While this works, this gives a obselete warning.iNETZO
No, we do the same as you at the moment, i have raised the issue with the Umbraco Forms team but was redirect to the forum to ask the question...
I did the same :-) https://github.com/umbraco/Umbraco.Forms.Issues/issues/619
is working on a reply...