One of the discussion points from the meeting was the scenario where you have a constructor where 1 or more parameters are to be injected and 1 or more parameters are to be supplied by the client code. I've been playing with Autofac a little bit and it has a really simple way to implement that. Here's my contrived example:
using System;
using Autofac; using Autofac.Builder;
namespace AutofacTest { internal class Program
{ private static void Main() { var builder = new ContainerBuilder();
internal class ConsoleLogger : ILogger { public void Info(string message)
{ Console.WriteLine(message); } } }
Using the RegisterGeneratedFactory() method to register a delegate as a factory method. Notice the LogCommandFactory takes 2 parameters while the LogCommand's constructor takes 3. Autofac glues them together automagically. Sweet.
Hi everyone- So who's up for keeping the momentum going and having a June meeting? Do we want to have another midday meeting or an evening happy hour meeting?...
I'm game. I don't have any topic in mind off hand, but i'd like to stick to the formal presentation style. What do you guys think? ... -- Jeremy Jarrell ...
I like having an official/formal topic to be presented/discussed as the main event with any extra time at the end open to free-for-all. I think we're more...
Ok, I liked the presentation based format as well, I just wanted to throw those questions out there to try and gauge feedback. As far as time is concerned I'm...
you guys have any thoughts about a topic? would there be any interest in mocking (rhino mocks) or IoC (castle) or would that be too basic for us? ... -- Jeremy...
OK, so how does a presentation on Castle/IoC on June 16th, from noon - 2PM at the Tech Council sound? jeremy ... -- Jeremy Jarrell www.JeremyJarrell.com...
OK, i've sent a request in to the tech council for a room on June 16th. Our contact is out for the week but she'll be in next week so i'm going to hold off on...
OK, quick update. We actually have to move this to Friday, June 19th due to a room conflict at the council. Otherwise, same bat time (Noon - 2), same bat...
OK, I posted the meeting to both our list and the main ALT.NET mailing list. I also added the dates to our group calendar, the wiki, and put it on event...
One of the discussion points from the meeting was the scenario where you have a constructor where 1 or more parameters are to be injected and 1 or more...
Very cool, thanks Jim. Autofac is looking better every day :) I actually "solved" my issue with doing something similar with Castle this morning by just...