Orchard suppress dependency on Orchard.Security.Providers.FormsAuthenticationService is not working in Orchard 1.8

Topics: General
Apr 15, 2014 at 9:18 PM
Is there a bug in Orchard 1.8 around OrchardSuppressDependency ?
My class in a custom Module implement IAuthenticationService and decorated with [OrchardSuppressDependency("Orchard.Security.Providers.FormsAuthenticationService")] does not get call. The same class has been working fine in Orchard 1.7.2.
I also try Orchard 1.8 with ActiveDirectoryAuthorization Module in the Gallery and got the stackoverflow exception. Hope someone can help me to resolve this issue. Thanks.
Apr 16, 2014 at 8:55 PM
I found a solution by wrapping Work<T> around IMembershipService in the constructor. Without it, Orchard run into circular reference problem.