Skip to content

Move .UseNServicebus to IServiceCollection (Or create seperate exension method) #105

@moanrose

Description

@moanrose

Currently it is impossible to choose whether to initialize NServicebus or not based on configuration

I would suggest changing the UseNServicebus extension method, so that it extends IServiceCollection - or create seperate exension method with the following signature

public static void UseNServiceBus(this IServiceCollection serviceCollection, Func<HostBuilderContext, EndpointConfiguration> endpointConfigurationBuilder)

That way you can conditionally initialize NServicebus in ConfigureServices

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