AI OnAI Off
Maybe too late for the answer :)
With Injected<T> properties it's a bit more trickier. You have to tell EPiServer how that interface implementation is supposed to be created. This could be done using `ServiceConfiguration` attribute:
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Unique, ServiceType = typeof(IMemberFactory))]
public class DefaultMemberFactory : IMemberFactory
{
}
Hi,
I've created a visitor group and I'm trying to inject a class into it.I have the class all wired up and running fine in the site where I am injecting it into a block.
When I open the visitor group tab in the CMS, I get the following exception:
The code in the sites DependencyResolverInitialization module is:
And the criterion is:
I suspect the issue is that the Modules area have their own StructureMap Container. Is this the case? And if so, how is the best way to make sure your mappings are carried through?
Thanks