We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ninject.Bind().To().DefinesNamedScope("#window"); Ninject.Bind().To().InNamedScope("#window"); Ninject.Bind().To().InNamedScope("#window");
then whenever i call:
var window = Ninject.Get();
and each created window object has its own instance of IToast and ITaskManager. its Ok.
later in program in instance of ITaskManager user exectutes newTask() method and within
new Task will be created of type:
`public class Task { [Inject] public IToast Toast {get;set;}
[Inject] public ITaskManager {get;set;} }`
using normal Contructor (var task = new Task() ): and then:
Ninject.Inject(task) excepts :
says named scope "#window" is not found.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ninject.Bind().To().DefinesNamedScope("#window");
Ninject.Bind().To().InNamedScope("#window");
Ninject.Bind().To().InNamedScope("#window");
then whenever i call:
var window = Ninject.Get();
and each created window object has its own instance of IToast and ITaskManager. its Ok.
later in program in instance of ITaskManager user exectutes newTask() method and within
new Task will be created of type:
`public class Task
{
[Inject]
public IToast Toast {get;set;}
[Inject]
public ITaskManager {get;set;}
}`
using normal Contructor (var task = new Task() ):
and then:
Ninject.Inject(task) excepts :
says named scope "#window" is not found.
The text was updated successfully, but these errors were encountered: