Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift configuration into a portable class or struct #17

Open
sharpe5 opened this issue Feb 11, 2016 · 3 comments
Open

Shift configuration into a portable class or struct #17

sharpe5 opened this issue Feb 11, 2016 · 3 comments

Comments

@sharpe5
Copy link
Member

sharpe5 commented Feb 11, 2016

This means that we can share the same configuration object among multiple Subject. It also makes the internal code simpler, as there are less individual parameters to pass around.

@sharpe5
Copy link
Member Author

sharpe5 commented Feb 11, 2016

Have multiple construtors so it will just work, no matter which way you want to configure the class. Have considered fluent configuration, but I think this style can make the API more opaque.

@sharpe5
Copy link
Member Author

sharpe5 commented Feb 12, 2016

In addition, also add Factory wrappers which make it easy to use with any dependency injection container such as MEF or Unity. Having confif mostly in a class makes this easy.

@sharpe5
Copy link
Member Author

sharpe5 commented Feb 13, 2016

In order to keep consistent with NetMQ, call this property "Options" rather than "Configuration".

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

No branches or pull requests

1 participant