<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>funq Issue Tracker Rss Feed</title><link>http://www.codeplex.com/funq/WorkItem/List.aspx</link><description>funq Issue Tracker Rss Description</description><item><title>Created Issue: NuGet package [2162]</title><link>http://funq.codeplex.com/workitem/2162</link><description>Any chance we could see a NuGet package for Funq&amp;#63; I really like to avoid committing assemblies to version control where possible.&lt;br /&gt;</description><author>richard_szalay</author><pubDate>Wed, 12 Dec 2012 20:49:05 GMT</pubDate><guid isPermaLink="false">Created Issue: NuGet package [2162] 20121212084905P</guid></item><item><title>Commented Issue: Corrupt hg repository with fix instructions [2161]</title><link>http://funq.codeplex.com/workitem/2161</link><description>I have no clue if Codeplex mundged this up or if something else is a problem but I wanted to give my fix steps for correcting the repository corruption I seem to be getting 100&amp;#37; of the time.&lt;br /&gt;&lt;br /&gt;First is cloning this properly. Be sure to use the advanced clone option called &amp;#34;Use uncompressed transfer&amp;#34;. The end result is a repo set at revision -1.&lt;br /&gt;&lt;br /&gt;Fix &amp;#35;1 - revision 3&lt;br /&gt;1&amp;#41; Clone a separate instance to revision 2. I called this funq.fixed.&lt;br /&gt;2&amp;#41; Download the Silverlight Toolkit December 2008 from here http&amp;#58;&amp;#47;&amp;#47;silverlight.codeplex.com&amp;#47;releases&amp;#47;view&amp;#47;19172&amp;#35;DownloadId&amp;#61;51431.&lt;br /&gt;3&amp;#41; Add Microsoft.Silverlight.Testing.dll and Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll. to the the directory src&amp;#92;Lib&amp;#92;Silverlight UT. Commit.&lt;br /&gt;4&amp;#41; Now the fun part. Go into the hg directory .hg&amp;#92;store&amp;#92;data&amp;#92;src&amp;#92;_lib&amp;#92;_silverlight _u_t&amp;#92; and look for _microsoft._silverlight._testing.dll.i. Copy this to the main funq repository in the exact same location.&lt;br /&gt;5&amp;#41; Edit .hg&amp;#92;store&amp;#92;fncache and the line data&amp;#47;src&amp;#47;Lib&amp;#47;Silverlight UT&amp;#47;Microsoft.Silverlight.Testing.dll.i &amp;#40;I did mine underneath the existing entry for &amp;#42;Testing.dll.d&amp;#41;&lt;br /&gt;6&amp;#41; Update to revision 53 to prepare for fix &amp;#35;2&lt;br /&gt;&lt;br /&gt;Fix &amp;#35;2 - Revision 54&lt;br /&gt;1&amp;#41; Clone a copy of the fixed main repository up to revision 53 in a separate directory called funq.fixed2.&lt;br /&gt;2&amp;#41; Update Microsoft.Silverlight.Testing.dll from the April 2010 Silverlight Toolkit in src&amp;#92;Lib&amp;#92;Silverlight UT. Commit.&lt;br /&gt;3&amp;#41; Go into the hg directory .hg&amp;#92;store&amp;#92;data&amp;#92;src&amp;#92;_lib&amp;#92;_silverlight _u_t&amp;#92; and this time grab both _microsoft._silverlight._testing.dll.d and _microsoft._silverlight._testing.dll.i &amp;#40;the only difference is the .i and .d on the end&amp;#41; and paste BOTH FILES back to the same location in the main repository&lt;br /&gt;4&amp;#41; Now update to revision 54 and then to the latest revision and you should be set. I had to do this due to some file mismatches.&lt;br /&gt;&lt;br /&gt;This only matters for those of us that wish to fix their local repository. Going forward I should be able to see any updates. If you&amp;#39;d like, I can send you my repository if somehow your local version is corrupt. Unfortunately I don&amp;#39;t think codeplex can be fixed as easily but perhaps with these steps we could help them out&amp;#63;&lt;br /&gt;Comments: Amazing fix &amp;#64;w0rddriven, thanks&amp;#33; As Arthur C. Clarke said&amp;#58; &amp;#34;Any sufficiently advanced technology is indistinguishable from magic.&amp;#34;&amp;#10;This desperately needs fixing in the Codeplex repo. Gets my vote.</description><author>yeurch</author><pubDate>Thu, 15 Mar 2012 12:25:30 GMT</pubDate><guid isPermaLink="false">Commented Issue: Corrupt hg repository with fix instructions [2161] 20120315122530P</guid></item><item><title>Created Issue: Corrupt hg repository with fix instructions [2161]</title><link>http://funq.codeplex.com/workitem/2161</link><description>I have no clue if Codeplex mundged this up or if something else is a problem but I wanted to give my fix steps for correcting the repository corruption I seem to be getting 100&amp;#37; of the time.&lt;br /&gt;&lt;br /&gt;First is cloning this properly. Be sure to use the advanced clone option called &amp;#34;Use uncompressed transfer&amp;#34;. The end result is a repo set at revision -1.&lt;br /&gt;&lt;br /&gt;Fix &amp;#35;1 - revision 3&lt;br /&gt;1&amp;#41; Clone a separate instance to revision 2. I called this funq.fixed.&lt;br /&gt;2&amp;#41; Download the Silverlight Toolkit December 2008 from here http&amp;#58;&amp;#47;&amp;#47;silverlight.codeplex.com&amp;#47;releases&amp;#47;view&amp;#47;19172&amp;#35;DownloadId&amp;#61;51431.&lt;br /&gt;3&amp;#41; Add Microsoft.Silverlight.Testing.dll and Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll. to the the directory src&amp;#92;Lib&amp;#92;Silverlight UT. Commit.&lt;br /&gt;4&amp;#41; Now the fun part. Go into the hg directory .hg&amp;#92;store&amp;#92;data&amp;#92;src&amp;#92;_lib&amp;#92;_silverlight _u_t&amp;#92; and look for _microsoft._silverlight._testing.dll.i. Copy this to the main funq repository in the exact same location.&lt;br /&gt;5&amp;#41; Edit .hg&amp;#92;store&amp;#92;fncache and the line data&amp;#47;src&amp;#47;Lib&amp;#47;Silverlight UT&amp;#47;Microsoft.Silverlight.Testing.dll.i &amp;#40;I did mine underneath the existing entry for &amp;#42;Testing.dll.d&amp;#41;&lt;br /&gt;6&amp;#41; Update to revision 53 to prepare for fix &amp;#35;2&lt;br /&gt;&lt;br /&gt;Fix &amp;#35;2 - Revision 54&lt;br /&gt;1&amp;#41; Clone a copy of the fixed main repository up to revision 53 in a separate directory called funq.fixed2.&lt;br /&gt;2&amp;#41; Update Microsoft.Silverlight.Testing.dll from the April 2010 Silverlight Toolkit in src&amp;#92;Lib&amp;#92;Silverlight UT. Commit.&lt;br /&gt;3&amp;#41; Go into the hg directory .hg&amp;#92;store&amp;#92;data&amp;#92;src&amp;#92;_lib&amp;#92;_silverlight _u_t&amp;#92; and this time grab both _microsoft._silverlight._testing.dll.d and _microsoft._silverlight._testing.dll.i &amp;#40;the only difference is the .i and .d on the end&amp;#41; and paste BOTH FILES back to the same location in the main repository&lt;br /&gt;4&amp;#41; Now update to revision 54 and then to the latest revision and you should be set. I had to do this due to some file mismatches.&lt;br /&gt;&lt;br /&gt;This only matters for those of us that wish to fix their local repository. Going forward I should be able to see any updates. If you&amp;#39;d like, I can send you my repository if somehow your local version is corrupt. Unfortunately I don&amp;#39;t think codeplex can be fixed as easily but perhaps with these steps we could help them out&amp;#63;&lt;br /&gt;</description><author>w0rddriven</author><pubDate>Mon, 08 Aug 2011 15:53:46 GMT</pubDate><guid isPermaLink="false">Created Issue: Corrupt hg repository with fix instructions [2161] 20110808035346P</guid></item><item><title>Created Feature: IContainer [2160]</title><link>http://funq.codeplex.com/workitem/2160</link><description>Can we have an interface to all the register and resolve methods in Container.Overloads class&amp;#63;&lt;br /&gt;</description><author>dcazzulino</author><pubDate>Sat, 02 Oct 2010 05:38:42 GMT</pubDate><guid isPermaLink="false">Created Feature: IContainer [2160] 20101002053842A</guid></item><item><title>Edited Feature: Add support for checking if a type is registered [2159]</title><link>http://funq.codeplex.com/workitem/2159</link><description>IsRegistered&amp;#60;T...&amp;#62;&amp;#40;&amp;#41;&lt;br /&gt;</description><author>dcazzulino</author><pubDate>Sat, 02 Oct 2010 05:23:28 GMT</pubDate><guid isPermaLink="false">Edited Feature: Add support for checking if a type is registered [2159] 20101002052328A</guid></item><item><title>Created Issue: Add support for checking if a type is registered [2159]</title><link>http://funq.codeplex.com/workitem/2159</link><description>IsRegistered&amp;#60;T...&amp;#62;&amp;#40;&amp;#41;&lt;br /&gt;</description><author>dcazzulino</author><pubDate>Sat, 02 Oct 2010 05:22:58 GMT</pubDate><guid isPermaLink="false">Created Issue: Add support for checking if a type is registered [2159] 20101002052258A</guid></item><item><title>Commented Issue: Easy registration [2158]</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=2158</link><description>Here&amp;#39;s the code for &amp;#34;easy&amp;#34; component registration &amp;#40;feel free to rename&amp;#41;, which is the equivalent of registering a component so that all constructor dependencies are resolved from the container via lambdas.&lt;br /&gt;&lt;br /&gt;It is implemented as a void extension method, but for general usage it would probably make sense to return IRegistration&amp;#60;T&amp;#62;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;pastie.org&amp;#47;536675&lt;br /&gt;Comments: ** Comment from web user: mythz ** &lt;p&gt;I&amp;#39;ve posted about this in the discussions but it may get lost so I&amp;#39;ll re-post&amp;#58;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve developed a generics&amp;#47;expression based AutoWire wrapper for my web service framework that lets you register &amp;#39;runtime types&amp;#39; around Funq&amp;#39;s generic interfaces here&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;servicestack&amp;#47;source&amp;#47;browse&amp;#47;trunk&amp;#47;Common&amp;#47;ServiceStack.Common&amp;#47;ServiceStack.ServiceHost&amp;#47;ExpressionTypeFunqContainer.cs&lt;/p&gt;&lt;p&gt;It&amp;#39;s built with the same spirit as Funq where all the perf cost happens during the &amp;#39;registration phase&amp;#39;. Basically when you register a &amp;#39;runtime type&amp;#39; it goes through and &amp;#39;binds&amp;#39; the Funq resolver to the largest constructor and all its public properties that have registered dependencies.&lt;/p&gt;&lt;p&gt;It exposes the following API&amp;#39;s allowing you to register &amp;#39;runtime types&amp;#39;&amp;#58;&lt;/p&gt;&lt;p&gt;public void RegisterTypes&amp;#40;params Type&amp;#91;&amp;#93; serviceTypes&amp;#41;&lt;br /&gt;void RegisterTypes&amp;#40;IEnumerable&amp;#60;Type&amp;#62; serviceTypes&amp;#41;&lt;/p&gt;&lt;p&gt;At the moment it&amp;#39;s just a wrapper class around the Funq container so I could add this functionality without modifying the existing Funq code-base.&lt;br /&gt;Although if this is a useful &amp;#40;and right&amp;#41; approach I could rewrite it as an extension method or merge it into the existing code base, etc, whatever is the preferred method.&lt;br /&gt;Of course it will only work in environments that support expressions. &lt;br /&gt;I do have developed an equivalent Reflection-based solution for this purpose, although it is probably not best to include these slower API&amp;#39;s as the whole point of Funq is to run fast on embedded devices &amp;#58;&amp;#41;&lt;/p&gt;</description><author>mythz</author><pubDate>Wed, 10 Feb 2010 18:43:33 GMT</pubDate><guid isPermaLink="false">Commented Issue: Easy registration [2158] 20100210064333P</guid></item><item><title>Commented Issue: Easy registration [2158]</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=2158</link><description>Here&amp;#39;s the code for &amp;#34;easy&amp;#34; component registration &amp;#40;feel free to rename&amp;#41;, which is the equivalent of registering a component so that all constructor dependencies are resolved from the container via lambdas.&lt;br /&gt;&lt;br /&gt;It is implemented as a void extension method, but for general usage it would probably make sense to return IRegistration&amp;#60;T&amp;#62;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;pastie.org&amp;#47;536675&lt;br /&gt;</description><author>mabster</author><pubDate>Mon, 23 Nov 2009 00:39:30 GMT</pubDate><guid isPermaLink="false">Commented Issue: Easy registration [2158] 20091123123930A</guid></item><item><title>Commented Issue: Easy registration [2158]</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=2158</link><description>Here&amp;#39;s the code for &amp;#34;easy&amp;#34; component registration &amp;#40;feel free to rename&amp;#41;, which is the equivalent of registering a component so that all constructor dependencies are resolved from the container via lambdas.&lt;br /&gt;&lt;br /&gt;It is implemented as a void extension method, but for general usage it would probably make sense to return IRegistration&amp;#60;T&amp;#62;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;pastie.org&amp;#47;536675&lt;br /&gt;Comments: ** Comment from web user: mythz ** &lt;p&gt;Actually this is close to what I was looking for, you should also consider a Register overload that doesn&amp;#39;t take typed parameters, i.e. container.Register&amp;#40;typeof&amp;#40;Interface&amp;#41;, typeof&amp;#40;Impl&amp;#41;&amp;#41; so we can auto register a type at runtime &amp;#40;on AppDomain startup&amp;#41;.&lt;/p&gt;</description><author>mythz</author><pubDate>Tue, 27 Oct 2009 21:34:12 GMT</pubDate><guid isPermaLink="false">Commented Issue: Easy registration [2158] 20091027093412P</guid></item><item><title>Commented Issue: Easy registration</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=2158</link><description>Here&amp;#39;s the code for &amp;#34;easy&amp;#34; component registration &amp;#40;feel free to rename&amp;#41;, which is the equivalent of registering a component so that all constructor dependencies are resolved from the container via lambdas.&lt;br /&gt;&lt;br /&gt;It is implemented as a void extension method, but for general usage it would probably make sense to return IRegistration&amp;#60;T&amp;#62;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;pastie.org&amp;#47;536675&lt;br /&gt;Comments: ** Comment from web user: mabster ** &lt;p&gt;Yeah, I think a parameterless Register&amp;#40;&amp;#41; overload would be a nice way to do this.&lt;/p&gt;</description><author>mabster</author><pubDate>Fri, 10 Jul 2009 00:59:03 GMT</pubDate><guid isPermaLink="false">Commented Issue: Easy registration 20090710125903A</guid></item><item><title>Commented Issue: Easy registration</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=2158</link><description>Here&amp;#39;s the code for &amp;#34;easy&amp;#34; component registration &amp;#40;feel free to rename&amp;#41;, which is the equivalent of registering a component so that all constructor dependencies are resolved from the container via lambdas.&lt;br /&gt;&lt;br /&gt;It is implemented as a void extension method, but for general usage it would probably make sense to return IRegistration&amp;#60;T&amp;#62;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;pastie.org&amp;#47;536675&lt;br /&gt;Comments: ** Comment from web user: dcazzulino ** &lt;p&gt;This could also be just an overload to Register that doesn&amp;#39;t receive parameters...&lt;/p&gt;</description><author>dcazzulino</author><pubDate>Tue, 07 Jul 2009 15:29:50 GMT</pubDate><guid isPermaLink="false">Commented Issue: Easy registration 20090707032950P</guid></item><item><title>Created Issue: Easy registration</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=2158</link><description>Here&amp;#39;s the code for &amp;#34;easy&amp;#34; component registration &amp;#40;feel free to rename&amp;#41;, which is the equivalent of registering a component so that all constructor dependencies are resolved from the container via lambdas.&lt;br /&gt;&lt;br /&gt;It is implemented as a void extension method, but for general usage it would probably make sense to return IRegistration&amp;#60;T&amp;#62;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;pastie.org&amp;#47;536675&lt;br /&gt;</description><author>another_dave</author><pubDate>Tue, 07 Jul 2009 15:09:45 GMT</pubDate><guid isPermaLink="false">Created Issue: Easy registration 20090707030945P</guid></item><item><title>Closed Issue: When checking-in code, add link to the bottom of the commit message to the workitem</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1468</link><description>So that it&amp;#39;s easy to see what&amp;#39;s been fixed when.&lt;br /&gt;</description><author>dcazzulino</author><pubDate>Fri, 27 Mar 2009 04:30:23 GMT</pubDate><guid isPermaLink="false">Closed Issue: When checking-in code, add link to the bottom of the commit message to the workitem 20090327043023A</guid></item><item><title>Commented Issue: When checking-in code, add link to the bottom of the commit message to the workitem</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1468</link><description>So that it&amp;#39;s easy to see what&amp;#39;s been fixed when.&lt;br /&gt;Comments: Fixed on changeset 14858</description><author>dcazzulino</author><pubDate>Fri, 27 Mar 2009 04:29:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: When checking-in code, add link to the bottom of the commit message to the workitem 20090327042936A</guid></item><item><title>Created Issue: When checking-in code, add link to the bottom of the commit message to the workitem</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1468</link><description>So that it&amp;#39;s easy to see what&amp;#39;s been fixed when.&lt;br /&gt;</description><author>dcazzulino</author><pubDate>Fri, 27 Mar 2009 04:20:52 GMT</pubDate><guid isPermaLink="false">Created Issue: When checking-in code, add link to the bottom of the commit message to the workitem 20090327042052A</guid></item><item><title>Closed Issue: Service Key does not need ServiceType</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1400</link><description>The ServiceType property&amp;#47;field in ServiceKey is redundant.  The ServiceType is included as the return type in the FactoryType.&lt;br /&gt;&lt;br /&gt;I have tried the change and it works and will create a patch tomorrow.  This will include an update to the tests and the Performance Sample.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve included the update source for ServiceKey.cs only.  All other changes are a result of the signature change for the constructor.&lt;br /&gt;Comments: Implemented!!!</description><author>dcazzulino</author><pubDate>Fri, 27 Mar 2009 04:18:10 GMT</pubDate><guid isPermaLink="false">Closed Issue: Service Key does not need ServiceType 20090327041810A</guid></item><item><title>Commented Issue: Service Key does not need ServiceType</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1400</link><description>The ServiceType property&amp;#47;field in ServiceKey is redundant.  The ServiceType is included as the return type in the FactoryType.&lt;br /&gt;&lt;br /&gt;I have tried the change and it works and will create a patch tomorrow.  This will include an update to the tests and the Performance Sample.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve included the update source for ServiceKey.cs only.  All other changes are a result of the signature change for the constructor.&lt;br /&gt;Comments: Fixed on changeset 14854</description><author>dcazzulino</author><pubDate>Fri, 27 Mar 2009 04:17:03 GMT</pubDate><guid isPermaLink="false">Commented Issue: Service Key does not need ServiceType 20090327041703A</guid></item><item><title>Closed Feature: Register Instance</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1338</link><description>As per the discussion I created on this topic, it would be nice to be able to register an instance to be used when an interface is resolved.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve checked in a patch which covers the changes.&lt;br /&gt;Comments: Implemented!</description><author>dcazzulino</author><pubDate>Fri, 27 Mar 2009 04:06:30 GMT</pubDate><guid isPermaLink="false">Closed Feature: Register Instance 20090327040630A</guid></item><item><title>Closed Issue: Lazy Resolution with Func&lt;TService&gt;</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1275</link><description>Kzu,&lt;br /&gt;&lt;br /&gt;In some of my classes I like to delay the loading of dependencies for as long as possible, and I do this by accepting a Func&amp;#60;TService&amp;#62; as a ctor parameter rather than an instance of TService.&lt;br /&gt;&lt;br /&gt;I was wondering whether it would be possible to add the ability to resolve a Func&amp;#60;TService&amp;#62; from a container even when I&amp;#39;ve only registered TService. Since you know how to instantiate TService, if I ask for a Func&amp;#60;TService&amp;#62; then you should be able to hand me a function that wraps up the Func&amp;#60;Container, TService&amp;#62; I&amp;#39;ve already given you, automatically passing in &amp;#34;this&amp;#34; as the parameter.&lt;br /&gt;&lt;br /&gt;Then this sort of thing would be possible&amp;#58;&lt;br /&gt;&lt;br /&gt;interface IBar &amp;#123; ... &amp;#125;&lt;br /&gt;class Foo&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public Foo&amp;#40;Func&amp;#60;IBar&amp;#62; barFactory&amp;#41; &amp;#123; ... &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;builder.Register&amp;#60;IBar&amp;#62;&amp;#40;c &amp;#61;&amp;#62; new Bar&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;builder.Register&amp;#60;IFoo&amp;#62;&amp;#40;c &amp;#61;&amp;#62; new Foo&amp;#40;c.Resolve&amp;#60;Func&amp;#60;IBar&amp;#62;&amp;#62;&amp;#40;&amp;#41;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;The container would resolve Func&amp;#60;IBar&amp;#62; by returning a function that resolves IBar, passing itself into &amp;#34;c&amp;#34;.&lt;br /&gt;&lt;br /&gt;Does that make sense&amp;#63; I really think that would be a killer feature. I don&amp;#39;t know if other IoC containers do this.&lt;br /&gt;&lt;br /&gt;Matt&lt;br /&gt;</description><author>dcazzulino</author><pubDate>Sun, 15 Mar 2009 04:35:04 GMT</pubDate><guid isPermaLink="false">Closed Issue: Lazy Resolution with Func&lt;TService&gt; 20090315043504A</guid></item><item><title>Commented Issue: Lazy Resolution with Func&lt;TService&gt;</title><link>http://funq.codeplex.com/WorkItem/View.aspx?WorkItemId=1275</link><description>Kzu,&lt;br /&gt;&lt;br /&gt;In some of my classes I like to delay the loading of dependencies for as long as possible, and I do this by accepting a Func&amp;#60;TService&amp;#62; as a ctor parameter rather than an instance of TService.&lt;br /&gt;&lt;br /&gt;I was wondering whether it would be possible to add the ability to resolve a Func&amp;#60;TService&amp;#62; from a container even when I&amp;#39;ve only registered TService. Since you know how to instantiate TService, if I ask for a Func&amp;#60;TService&amp;#62; then you should be able to hand me a function that wraps up the Func&amp;#60;Container, TService&amp;#62; I&amp;#39;ve already given you, automatically passing in &amp;#34;this&amp;#34; as the parameter.&lt;br /&gt;&lt;br /&gt;Then this sort of thing would be possible&amp;#58;&lt;br /&gt;&lt;br /&gt;interface IBar &amp;#123; ... &amp;#125;&lt;br /&gt;class Foo&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; public Foo&amp;#40;Func&amp;#60;IBar&amp;#62; barFactory&amp;#41; &amp;#123; ... &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;builder.Register&amp;#60;IBar&amp;#62;&amp;#40;c &amp;#61;&amp;#62; new Bar&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;builder.Register&amp;#60;IFoo&amp;#62;&amp;#40;c &amp;#61;&amp;#62; new Foo&amp;#40;c.Resolve&amp;#60;Func&amp;#60;IBar&amp;#62;&amp;#62;&amp;#40;&amp;#41;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;The container would resolve Func&amp;#60;IBar&amp;#62; by returning a function that resolves IBar, passing itself into &amp;#34;c&amp;#34;.&lt;br /&gt;&lt;br /&gt;Does that make sense&amp;#63; I really think that would be a killer feature. I don&amp;#39;t know if other IoC containers do this.&lt;br /&gt;&lt;br /&gt;Matt&lt;br /&gt;Comments: ** Comment from web user: dcazzulino ** &lt;p&gt;Implemented as LazyResolve &amp;#58;&amp;#41;&amp;#41;&lt;/p&gt;</description><author>dcazzulino</author><pubDate>Sun, 15 Mar 2009 04:33:46 GMT</pubDate><guid isPermaLink="false">Commented Issue: Lazy Resolution with Func&lt;TService&gt; 20090315043346A</guid></item></channel></rss>