Ticket #125 (new defect)
Opened 9 months ago
Unable to register a custom IDependencyRegistrar
Description
I'm trying to register a custom dependency registrar to drop digest authentication in favour of my own cookie authentication.
However, I'm having trouble getting OR to use it.
I'm using this code within my Configure method:
public void Configure() {
DependencyManger?.GetService?<IDependencyResolver>()
.AddDependency?<IDependencyRegistrar, CustomDependencyRegistrar?>()
using (OpenRastaConfiguration?.Manual) {
...
I've tried many variations of adding the dependency but none seem to work.
I have a workaround of using a custom IDependencyResolverAccessor that registers my dependency before returning the InternalDependencyResolver?.
