Example #1
0
 private static void BuildAndRun(Options options)
 {
     using (var container = TagCloudConsole.BuildContainer(options))
     {
         var drawer = container.Resolve <IDrawer>();
         drawer.DrawAndSaveWords();
     }
 }
Example #2
0
 private static void BuildAndRun(Options options)
 {
     using (var container = TagCloudConsole.BuildContainer(options))
     {
         var drawer     = container.Resolve <IDrawer>();
         var drawResult = drawer.DrawAndSaveWords();
         if (!drawResult.IsSuccess)
         {
             Console.Error.WriteLine(drawResult.Error);
         }
     }
 }