For me I want a custom container because I already have significant
infrastructure based on it across ASP.Net, Win Forms, WPF and console
applications. My choice of container is based on many things
including the style of injection etc that I like. My objects are
designed around this and wont change for OR.
This means I only want to use those extensions when creating OR
objects, not my objects, and we run into the sub-container problems
again. I feel a bit like OR has things backwards because it is trying
to define how IoC is going to operate across the whole application
inluding user types. Ideally OR should not imply any restrictions on
the design of objects I provide so long as they meet the interfaces
specified.
What I really want is for OR to provide a default container which is
always used to construct default implementations of OR objects, even
if a custom container is registered. I want the users container to
always be asked for instances first, and to delegate back to the
default container when it fails. This would have a bunch of
interesting properties:
Seb
So I'm afraid those two classes need to be removed from the codebase and
rewritten to achieve the same result without reusing the same code or logic.
:(
-----Original Message-----
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On
Behalf Of Barry Dahlberg
Sent: 23 October 2009 10:11
To: OpenRasta
Subject: [openrasta] Re: IoC and Custom Resolvers
Sent from my iPhone
On Oct 23, 2009, at 5:36 AM, "Sebastien Lambla" <s...@serialseb.com>
wrote:
That said, I'd much prefer any "official" code, future plugin or not, to
remain MIT. For other licenses I'd recommend living out of the OR main
release.
Seb
Seb
-----Original Message-----
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On
Behalf Of Barry Dahlberg
Sent: 23 October 2009 14:55
To: OpenRasta
Subject: [openrasta] Re: IoC and Custom Resolvers