Declare Your Wireup Dependency

FlitBit.IoC declares its dependencies to FlitBit.Wireup, and in order for your library to play nicely with IoC, you will have to do likewise.

At a minimum, you need to add the following declaration to your assembly:

[assembly: WireupDependency(typeof(FlitBit.IoC.AssemblyWireup))]

This is the bare minimum wireup. It communicates to the bootstrap/wireup process that your assembly is dependent upon IoC being wired up in order to function correctly. The WireupCoordinator will ensure that IoC is in place before looking at your assembly; this is critical when you use the ContainerRegisterAttribute to associate implementations with interfaces.

Last edited Sep 1, 2013 at 4:32 PM by cerebralkungfu, version 4


No comments yet.