Tuesday, September 13, 2016
I really like using Autofac, it’s one of the most productive libraries I know, and it’s so much fun to discover new features. Aggregate Services is Autofac feature that allows you to wrap a set of dependencies into a single aggregate without the need to implement a concrete type for it. Consider the following case where you have a base class that has dependencies on a few other services, and two derived classes: class BaseLicenseGenerator:ILicenseGenerator
public BaseLicenseGenerator(ILogger logger, IUserRepository userRepository, ILicenseRepository licenseRepository)
Monday, August 24, 2015
Just finished sending my proposals to the ConFoo conference if you would like to hear me talk about Reactive Systems, Cloud, Reactive Extensions, and other Architectual topics Please vote for my proposals! bit.ly/1JqDZgY
Wednesday, February 25, 2015
When working with log4net you usually want that each class will have a named logger with the class full name (Namespace+Name). the Log4Net examples shows this pattern:public class MyClass
// Define a static logger variable so that it references the
// Logger instance named "MyClass".
private static readonly ILog log = LogManager.GetLogger(typeof(MyClass));
//Rest of the Class
this will create a logger instance with the class name and now in my log4net configuration I can write something like this:
<!-- A1 is set to be a ConsoleAppender...
Sunday, January 18, 2015
in March 5-6 2015, I will have the pleasure to talk about how you can leverage Dependency Injection(DI) for better software design in Universal Application. it will be fun and I’m very excited so join me http://mdevcon.com/posts/2015/01/09/ash-furrow/