Git Product home page Git Product logo

autofac.extras.mvvmcross's Issues

Remove usage of ContainerBuilder.Update

Per autofac/Autofac#811 the ContainerBuilder.Update() method is obsolete and refactoring needs to be done to remove usage where possible, treating the container as immutable.

AutofacMvxIocProvider has several usages of that method as it tries to resolve things on the fly.

The provider needs to be refactored to remove those usages, perhaps opting for AnyConcreteTypeNotAlreadyRegisteredSource instead.

Library causing Warning (MSB3277) - Found conflict between different versions of the same assembly

The latest nuget package still depends on MvvmCross v4 and using any MvvmCross v5 project will produce this warning. I wanted to take it up to do the upgrade and submit a pull request but I'm having some trouble upgrading any of the packages due to other lower versions being used in the code.

Nuget package Version: 4.0.2

Reproduction steps: Install latest Nuget package into a Mvvmcross project that is using v5 and the warning will appear when building.

You could give me some pointers on upgrading the project if you don't have time and I'll do it for you and submit a pull request.

Incorrect implementation of AutofacMvxIocProvider.IoCConstruct(Type type)

The implementation of public virtual object IoCConstruct(Type type) in "AutofacMvxIocProvider.cs" seems to be not in accordance with the intended behavior of MvvmCross.

The current implementation in the AutofacMvxIocProvider class just delegates the method call to the Resolve method, making it the same as calling the Resolve method in the first place.

If you take a look at the implementation of the IoCConstruct method in the MvxSimpleIoCContainer class, you can see that it is intended and implemented as a generalized mechanism to directly create a class instance of any class (without looking up any registration first), but then resolving any constructor parameters and properties in a usual IOC manner.

A side effect of the current implementation is that any view model cannot just be created automatically by MvvmCross but has to be explicitly registered with Autofac first before usage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.