Skip to content

Introduce an AddNServiceBus extension method on IServiceCollection #519

Open
@ramonsmits

Description

Describe the suggested improvement

Currently NServiceBus only has a IHostBuilder extension method called UseNServiceBus. Most frameworks have a convenience Use.. method on the builder but also provide an Add.. extension method on IServiceCollection.

Usually when the framework only adds ServiceCollection entries use has an Add.. and sometimes for convenience a Use.. on the host builder.

Describe the suggested solution

Follow conventions.

Currently this cannot work because our ServiceCollectionExtensions are private:

Its because NServiceBus still uses its own logging abstraction.

Metadata

Assignees

No one assigned

    Labels

    ImprovementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions