Exemplo n.º 1
0
 public void Setup()
 {
     _appSettings = new AppSettings(
         "",
         () => { return new ICommandHandler[] { new Fake_CommandHandler() }; },
         () => { return new ICommandHandler[] { new Fake_LanguageCommandHandler() }; });
 }
Exemplo n.º 2
0
 public DIContainer(AppSettings settings)
 {
     _settings = settings;
     _dispatcher = new CommandDispatcher(
         GetDefaultHandlers().ToArray(),
         GetPluginHandlers,
         EventDispatcher());
 }
Exemplo n.º 3
0
 public DIContainer(AppSettings settings)
 {
     _settings = settings;
 }
Exemplo n.º 4
0
 public DIContainer(AppSettings settings)
 {
     _settings = settings;
     CoreExtensions.ProcessExtensions.SetDispatcher(dispatchMessage);
 }
Exemplo n.º 5
0
 public static void Initialize()
 {
     Settings = new AppSettings(
         Path.GetDirectoryName(
             Assembly.GetExecutingAssembly().Location),
             getDefaultHandlers,
             getLanguageHandlers);
     _interpreters = new Interpreters(Environment.CurrentDirectory);
     ProcessExtensions.GetInterpreter =
         (file) => {
                 return _interpreters
                     .GetInterpreterFor(Path.GetExtension(file));
             };
     _container = new DIContainer(Settings);
 }