Skip to content

Doesn't work with .net core 2.0 #39

Description

@trampster

I have:

  • Ninject 3.3.3
  • Ninject.Extensions.Factory 3.3.2

I have converted a working project from .net 4.6.1 to .net standard 2.0 and .net core 2.0. Now none of my Ninject.Extensions.Factory stuff works.

The Func<> automatic bindings are not happening, I get a runtime error saying it couldnt' find a binding for Func (I have worked around this be automatically binding all the Func<T's> that I need.

The interface factories like the following:
Bind<IWorkerThreadFactory>().ToFactory();

Result in a runtime error as follows:

System.NotImplementedException: 'This is a DynamicProxy2 error: There are no interceptors specified for method 'Tait.EnableFleet.Agent.FlowControl.IWorkerThread CreateWorkerThread(System.String)' which has no target. When calling method without target there is no implementation to 'proceed' to and it is the responsibility of the interceptor to mimic the implementation (set return value, out arguments etc)'

I have triple checked that my projects are using Ninject.Extensions.Factory 3.3.2 via nuget.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions