Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Support multiple RegisterTypes calls on one IBuilder instance #35

Open
erictuvesson opened this issue Mar 17, 2019 · 1 comment
Open

Comments

@erictuvesson
Copy link
Contributor

Currently the second RegisterTypes call overrides the previous call as it's saved as an action in the builder.

new ServerBuilder()
    .RegisterTypes(serviceCollection =>
    {
        // Never called
    })
    .RegisterTypes(serviceCollection =>
    {
        // Called
    })

Would be nice if it was possible to call it multiple times or that it alerted that it is already set.

@darkfriend77
Copy link

Hi,
how is RegisterTypes beeing used, is there an example?

sry as it is not helping your issue, but it seems you know more about ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants