Ticket #125 (new defect)

Opened 9 months ago

Unable to register a custom IDependencyRegistrar

Reported by: garry@… Owned by: serialseb
Priority: blocker Milestone:
Component: Core - DependencyInjection Version:
Keywords: dependencyregistrar Cc:
Time remaining: 1d Blocked By:
Time spent: 1d Time planned: 1d
Blocking:

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?.

Attachments

Add/Change #125 (Unable to register a custom IDependencyRegistrar)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.