Skip to content

In the Scope constructor, casting scopeManager.ServiceFactory to type ServiceContainer makes interface IServiceFactory pointless #587

@stevenxi

Description

@stevenxi

My understanding of having everying abstracted to interface (etc IServiceFactory) is allowing customization.

But in the Scope constructor, it casts the ServiceFactor from IServiceFactory to ServiceContainer. Makes the interface IServiceFactory pointless, because there's no way to implement customized IServiceFactory anymore.

serviceFactory = (ServiceContainer)scopeManager.ServiceFactory;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions