Skip to content

Instantly share code, notes, and snippets.

@mikeobrien
Created December 28, 2015 17:47
Show Gist options
  • Save mikeobrien/a05e08e75eed941eb7be to your computer and use it in GitHub Desktop.
Save mikeobrien/a05e08e75eed941eb7be to your computer and use it in GitHub Desktop.

Revisions

  1. mikeobrien created this gist Dec 28, 2015.
    13 changes: 13 additions & 0 deletions Runner.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    using (var container = new Container(x => {
    x.AddRegistry<Core.Registry>();
    x.AddRegistry<Registry>(); }))
    {
    try
    {
    container.GetInstance<SomeRunnerType>().Run();
    }
    catch (Exception exception)
    {
    container.GetInstance<ILogger>().LogError(excetpion);
    }
    }