Skip to content

Instantly share code, notes, and snippets.

View codewithpassion's full-sized avatar

Dominik Fretz codewithpassion

View GitHub Profile
@codewithpassion
codewithpassion / gist:2880981
Created June 6, 2012 09:44
#MEF ImportMany on interfaces
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var cat = new AssemblyCatalog(typeof(Program).Assembly);
var container = new CompositionContainer(cat);
var someObject = container.GetExportedValue<SomeClass>();
@codewithpassion
codewithpassion / buildserver-prayer
Created May 8, 2012 04:54
the build server prayer
the build server prayer (loosely based on The Lord's Prayer), by @chrisrbooth:
Our build, who art on the build server,
Hallowed be thy name,
Thy tasks be done,
Thy tests be run,
On the build server,
As it they are on my dev pc
Give us this day, no weird exceptions
Forgive us our breaking check-ins