Skip to content

Named parameters for built in Microsoft DI Container #2937

@satyajit-behera

Description

@satyajit-behera

While using Microsoft Built In Dependency Injection, need of one feature often comes up:
Passing Parameters to Resolve during runtime.

Autofac provides this as in the example below.
var reader = scope.Resolve<ConfigReader>(new NamedParameter("configSectionName", "sectionName"));

In my opinion, this one feature will make the container complete in many aspects to use for any application that we create.

Is it still available and I am missing it how to use it, Or can it be included in some future release Or is there any work around to implement this?

Thanks

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