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

Using Akavache with C# WPF - Help #85

Closed
redfox000 opened this issue Oct 18, 2013 · 1 comment
Closed

Using Akavache with C# WPF - Help #85

redfox000 opened this issue Oct 18, 2013 · 1 comment
Labels

Comments

@redfox000
Copy link

I am trying to use Akavache in our C# wpf application. I am trying to initialize it in our AppBootstrapper, but not having much success.

        BlobCache.ApplicationName = "MobileApp";
        BlobCache.EnsureInitialized();
       dependencyResolver.RegisterLazySingleton(() => new TestBlobCache(), typeof(IBlobCache), "LocalMachine");
        dependencyResolver.RegisterLazySingleton(() => new TestBlobCache(), typeof(IBlobCache), "UserAccount");
        //dependencyResolver.Register(() => BlobCache.LocalMachine, typeof(IViewFor<IBlobCache>), "LocalMachine");
        //dependencyResolver.Register(() => BlobCache.UserAccount, typeof(IViewFor<IBlobCache>), "UserAccount");

But when I go to use BlobCache later on, both .LocalMachine and .UserAccount are null.

What am I missing?

@anaisbetts
Copy link
Member

The only thing you have to do anymore is:

BlobCache.ApplicationName = "MobileApp";

Everything else is AutoMagically done for you. If you're still having troubles, reopen this bug and we'll figure it out. Don't override RxApp.MutableResolver, just leave it be :)

@lock lock bot added the outdated label Jun 25, 2019
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants