I've implemented a custom Resolver for my Controllers for Ninject which works fine, however this is not working for pipelines.
How can I create a custom dependency Injection for Sitecore pipelines?
When I read the anwser below, I think I need to use Factory, but I am not understanding how this works.
I've the following class
public class RedirectResolver : HttpRequestProcessor
{
private IWasInjected _injection;
public RedirectResolver(IWasInjected injection)
{
_injection = injection
}
public override void Process(HttpRequestArgs args)
{
var httpContext = HttpContext.Current;
//Do Something
}
}
this Processor I've registered in the following pipeline
<pipelines>
<httpRequestBegin>
<processor patch:after="*[@type='Sitecore.Pipelines.HttpRequest.ItemResolver, Sitecore.Kernel']" type="MyNamespace.RedirectMapResolver, AssemblyName.Feature.Redirects" resolve="true">
</processor>
</httpRequestBegin>
</pipelines>
thats my current "Implementation" but I don't understand how I get the Factory explained in the blogpost https://cardinalcore.co.uk/2014/07/02/sitecore-pipelines-commands-using-ioc-containers/ to resolve my Injection?