<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dependency Injection with ASP.NET Web API and Autofac</title><link>http://blogs.msdn.com/b/roncain/archive/2012/07/16/dependency-injection-with-asp-net-web-api-and-autofac.aspx</link><description>This post describes how we can use Dependency Injection (DI) in ASP.NET Web API using Autofac to accomplish a fairly common task – namely creating an ApiController with custom parameters to service an Http request. In WebApi, we define the basic verbs</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Dependency Injection with ASP.NET Web API and Autofac</title><link>http://blogs.msdn.com/b/roncain/archive/2012/07/16/dependency-injection-with-asp-net-web-api-and-autofac.aspx#10378944</link><pubDate>Tue, 18 Dec 2012 09:15:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10378944</guid><dc:creator>Raghavendra</dc:creator><description>&lt;p&gt;Hi I am using Autofac in vb.net. I could not able to find builder.RegisterAssemblyTypes method(RegisterAssemblyTypes ) &amp;amp; InstancePerApiRequest(). Could you please help me&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10378944" width="1" height="1"&gt;</description></item><item><title>re: Dependency Injection with ASP.NET Web API and Autofac</title><link>http://blogs.msdn.com/b/roncain/archive/2012/07/16/dependency-injection-with-asp-net-web-api-and-autofac.aspx#10349489</link><pubDate>Fri, 14 Sep 2012 15:01:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10349489</guid><dc:creator>Alex Meyer-Gleaves</dc:creator><description>&lt;p&gt;You can now use Autofac to create filters that support DI without using attributes. :)&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://alx.to/O9n4VU"&gt;http://alx.to/O9n4VU&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10349489" width="1" height="1"&gt;</description></item><item><title>re: Dependency Injection with ASP.NET Web API and Autofac</title><link>http://blogs.msdn.com/b/roncain/archive/2012/07/16/dependency-injection-with-asp-net-web-api-and-autofac.aspx#10342737</link><pubDate>Thu, 23 Aug 2012 13:21:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10342737</guid><dc:creator>Ron Cain</dc:creator><description>&lt;p&gt;Sorry to be tardy. &amp;nbsp;Are you asking how an ActionFilter could pull from the DI container? &amp;nbsp;Because ActionFilters are expressed as attributes, you can&amp;#39;t inject the attributes themselves, but you could write an ActionFilter that was knowledgable about GlobalConfiguration.Configuration to get the dependency resolver to ask for some service instance it would execute when called. &amp;nbsp;Would that do what you&amp;#39;re looking for?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10342737" width="1" height="1"&gt;</description></item><item><title>re: Dependency Injection with ASP.NET Web API and Autofac</title><link>http://blogs.msdn.com/b/roncain/archive/2012/07/16/dependency-injection-with-asp-net-web-api-and-autofac.aspx#10330957</link><pubDate>Wed, 18 Jul 2012 04:14:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10330957</guid><dc:creator>crypted</dc:creator><description>&lt;p&gt;Awesome,Thanks for sharing. Do you have any idea how to inject dependencies in ActionFilter ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10330957" width="1" height="1"&gt;</description></item></channel></rss>