Ejemplo n.º 1
0
 public Sandbox(IAssemblyLoader assemblyLoader, IHookRegistry hookRegistry, IActivatorWrapper activatorWrapper, IReflectionWrapper typeWrapper)
 {
     LogConfiguration.Initialize();
     _assemblyLoader        = assemblyLoader;
     _hookRegistry          = hookRegistry;
     this.activatorWrapper  = activatorWrapper;
     this.reflectionWrapper = typeWrapper;
     instanceManagerType    = _assemblyLoader.ClassInstanceManagerType;
     LoadClassInstanceManager();
 }
Ejemplo n.º 2
0
        private static void Main(string[] args)
        {
            LogConfiguration.Initialize();
            if (args.Length == 0)
            {
                Console.WriteLine("usage: {0} --<start|init>", AppDomain.CurrentDomain.FriendlyName);
                Environment.Exit(1);
            }
            var phase   = args[0];
            var command = GaugeCommandFactory.GetExecutor(phase);

            command.Execute();
        }