Created
February 26, 2013 18:34
-
-
Save ntr/5040887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IContainer ConfigureContainer() | |
{ | |
var builder = new ContainerBuilder(); | |
builder.RegisterType<Worker>(); | |
builder.RegisterModule(new TypedLoggersInjector(new LogFactory())); | |
return builder.Build(); | |
} | |
public static void TestInjection() | |
{ | |
var container = ConfigureContainer(); | |
var worker = container.Resolve<Worker>(); | |
worker.Start(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment