Introduce an AddNServiceBus
extension method on IServiceCollection
#519
Open
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.
-
Serilog
- Use (IHostBuilder): https://github.com/serilog/serilog-extensions-hosting/blob/v8.0.0/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs#L40
- Add (IServiceCollection) : https://github.com/serilog/serilog-extensions-hosting/blob/v8.0.0/src/Serilog.Extensions.Hosting/SerilogServiceCollectionExtensions.cs#L56
-
Hangfire
-
Hangfire dashboard
Describe the suggested solution
Follow conventions.
Currently this cannot work because our ServiceCollectionExtensions are private:
Its because NServiceBus still uses its own logging abstraction.