Hi, how do i convert the following from Autofac to Unity (where _context is of type IComponentContext):
var query = _context.Resolve<IContentQuery>(TypedParameter.From<IContentManager>(this));
The code above is taken from Orchard and and i'm trying to understand the code fully before i'm going to make the plunge into using it. Ideally i'd like to remove the dependency on Autofac or Untiy altogether.
If there's a way this can be done using the Common Service Locator that would also be appreciate. Usually i'd try something like:
var query =
But i can't see how to handle the TypedParameter stuff.
I'd really appreciate it if someone could help.