Skip to content

Can I inititialize WebHostBuilder with and existing container? #23

@hellfirehd

Description

@hellfirehd

The call to .UseStructureMap() expects nothing or a Registry. Either way it creates a brand new container.

I would prefer to use an existing container with cross cutting services that the entire application uses, not just WebHost.

This could be done if there was a .UseStructureMap(IContainer) overload. Is there any interest in this? Or is it a bad idea and if so, why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions