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

Usage in Xamarin #374

Open
unitrix0 opened this issue Jun 25, 2020 · 0 comments
Open

Usage in Xamarin #374

unitrix0 opened this issue Jun 25, 2020 · 0 comments

Comments

@unitrix0
Copy link

unitrix0 commented Jun 25, 2020

I'm trying to work with ninject in a Xamarin forms project. But I get an Exception: Value cannot be null.
Parameter name: path1

My Code so far:

public partial class App : Application
{
    public App()
    {
        IKernel nInject = new StandardKernel(new DependencyBindings());

        InitializeComponent();
        MainPage = new LoginPage();
    }
}

class DependencyBindings : NinjectModule
{
    public override void Load()
    {
        Bind<IPageService>().To<PageService>();
        Bind<IAuthenticationService>().To<AuthenticationService>();
    }
}

Frankly I have no clue how to get started with Ninject. The Wiki seems to exactly do what I did.

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