Blog Posts

  • ASP.NET MVC 3 Beta integration for Autofac

    The Autofac MVC integration has been updated to provide integration with the ASP.NET MVC 3 Beta, making it easier for users by removing the need to add a reference to the Autofac.Integration.Web.dll assembly, implement the IContainerProviderAccessor interface on the HttpApplication, and register the ContainerDisposalModule in the web.config file. The core piece of the integration is the AutofacDependencyResolver which is an implementation of the IDependencyResolver interface that Brad Wilson outlines in his blog post series on ASP.NET MVC 3 Service Location. A HTTP module called RequestLifetimeModule is registered programmatically via the DynamicModuleUtility class to inform Autofac when the HTTP request has ended.

  • Random links for September 2010

    This article contains a list of interesting links from September 2010.

  • Getting the Windows Product ID using WMI

    The Windows Product ID can be retrieved using WMI via the Win32_OperatingSystem class and the SerialNumber property. The relevant documentation can be found on MSDN and an example of code to query the property value is given. It has been tested successfully on various versions of Windows.

  • CodeDomProvider and Compiler Warning Levels

    By default, the CodeDomProvider does not return warning messages in the CompilerResults that are returned when compiling code in Visual Studio. The default warning level is 4, and you can use CompilerParameters.WarningLevel to set the warning level and CompilerParameters.TreatWarningsAsErrors to abort the compilation for warnings.

  • Random links for August 2010

    This article contains a list of interesting links from August 2010.