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

InlineModule can't be used more than once in a kernel #1

Open
ngbrown opened this issue Oct 27, 2010 · 1 comment
Open

InlineModule can't be used more than once in a kernel #1

ngbrown opened this issue Oct 27, 2010 · 1 comment

Comments

@ngbrown
Copy link

ngbrown commented Oct 27, 2010

Even though each InlineModule may be different, the kernel throws an exception when more than a single InlineModule is loaded. The cause is a compairision on the Name property. A solution would be to override the name in the InlineModule class.

    public override string Name
    {
        get
        {
            return this.GetType().Name + this._loadCallbacks.GetHashCode();
        }
    }

I realize that Ninject 1 was end of life, but not everyone can take a dependancy on System.Core (and use .Net 3.5).

@remogloor
Copy link
Member

As you already mentioned Ninject1 is end of life. I suggest to switch to Ninject2. Otherwise you will have to fix the issue yourself as we concentrate on improving Ninject2 and won't change Ninject1 anymore.

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

2 participants