Giter VIP home page Giter VIP logo

Comments (9)

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on December 15, 2007 21:10:49

Issue 18 arises because CSharpCodeProvider is not complete under Mono. The
replacement should be selected with Mono compatibility in mind.

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on December 19, 2007 00:11:10

Summary: Use DynamicMethod or Linq to implement delegate factories

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on January 02, 2008 23:38:50

Labels: Milestone-Release1.1

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on January 10, 2008 01:24:25

I should mention that there is a workaround for this - register delegates manually:

builder.Register().ThroughFactory();

Becomes...

builder.Register().WithScope( InstanceScope .Factory);
builder.Register(c => (name => c.Resolve(new Parameter("name",
name)))).WithScope( InstanceScope .Container);

Where PersonFactory is a delegate type:

delegate Person PersonFactory(string name);

And Person has a (string name) constructor.

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on January 10, 2008 01:25:14

Scratch that workaround comment - wrong issue!

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on February 15, 2008 21:42:19

Moving this to Autofac.Extras. DelegateFactories in 1.1.

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on February 16, 2008 19:29:17

Linq used. r229 . Assembly is called Autofac.Extras.GeneratedAssemblies. Kept in
separate assembly for Mono support in main assembly.

Implementation only is done, API needs work.

Status: Started

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on February 16, 2008 20:58:38

Sorry that should read Autofac.Extras.GeneratedFactories.

from autofac.

alexmg avatar alexmg commented on July 20, 2024

From [email protected] on March 01, 2008 14:43:53

Tweaked api in r245 . Happy enough with it now, will consider further changes based on
usage.

Status: Verified

from autofac.

Related Issues (20)

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.