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

Mark Scope's default constructor obsolete #701

Closed
dotnetjunkie opened this issue May 1, 2019 · 0 comments
Closed

Mark Scope's default constructor obsolete #701

dotnetjunkie opened this issue May 1, 2019 · 0 comments

Comments

@dotnetjunkie
Copy link
Collaborator

The SimpleInjector.Scope class contains two public constructors: the default, and one that accepts a Container instance.

A Scope, however, should always ber accociated with a Container and some parts of the library actually depend on the availability of a Container. It would, therefore, be a good idea to mark the default constructor obsoleted (with error: false).

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

No branches or pull requests

1 participant