예제 #1
0
        protected override void Initialize()
        {
            base.Initialize();
            var container = new TinyIoCContainer();
            container.Register<IServiceProvider>(this);
            container.Register<IServiceContainer>(this);
            container.Register<IVisualStudioService, VisualStudioService>().AsMultiInstance();
            container.Register<INuGet, NuGet>().AsMultiInstance();
            container.Register<IConsoleRunner, ConsoleRunner>().AsMultiInstance();
            container.Register<IScenarioRunner, ScenarioRunner>().AsMultiInstance();
            container.Register<IPluginConfiguration, PluginConfiguration>().AsSingleton();
            container.Register<ISolutionEventsListener, SolutionEventsListener>().AsSingleton();

            container.Install(
                new OutputWindowTask(),
                new LoggingTask(),
                new MenuCommandTask(),
                new CodeWindowTask(),
                new PublishCrossPackageServicesTask()
                );
        }
예제 #2
0
        protected override void Initialize()
        {
            Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString()));
            base.Initialize();
            var container = new TinyIoCContainer();
            container.Register<IServiceProvider>(this);
            container.Register<IServiceContainer>(this);
            container.Register<IVisualStudioService, VisualStudioService>().AsMultiInstance();
            container.Register<INuGet, NuGet>().AsMultiInstance();
            container.Register<IConsoleRunner, ConsoleRunner>().AsMultiInstance();
            container.Register<IScenarioRunner, ScenarioRunner>().AsMultiInstance();
            container.Register<IPluginConfiguration, PluginConfiguration>().AsSingleton();
            container.Register<ISolutionEventsListener, SolutionEventsListener>().AsSingleton();

            container.Install(
                new OutputWindowTask(),
                new LoggingTask(),
                new MenuCommandTask(),
                new CodeWindowTask(),
                new PublishCrossPackageServicesTask()
                );
        }
예제 #3
0
        protected override void Initialize()
        {
            base.Initialize();
            var container = new TinyIoCContainer();

            container.Register <IServiceProvider>(this);
            container.Register <IServiceContainer>(this);
            container.Register <IVisualStudioService, VisualStudioService>().AsMultiInstance();
            container.Register <INuGet, NuGet>().AsMultiInstance();
            container.Register <IConsoleRunner, ConsoleRunner>().AsMultiInstance();
            container.Register <IScenarioRunner, ScenarioRunner>().AsMultiInstance();
            container.Register <IPluginConfiguration, PluginConfiguration>().AsSingleton();
            container.Register <ISolutionEventsListener, SolutionEventsListener>().AsSingleton();

            container.Install(
                new OutputWindowTask(),
                new LoggingTask(),
                new MenuCommandTask(),
                new CodeWindowTask(),
                new PublishCrossPackageServicesTask()
                );
        }