コード例 #1
0
        /// <summary>
        /// Initialize level
        /// </summary>
        protected void init()
        {
#if DEBUG
            Log.Warn("Used [Debug version]");
#else
            if (vsSBE.Version.branchName.ToLower() != "releases")
            {
                Log.Warn("Used [Unofficial release]");
            }
#endif

            if (Environment.Events != null)
            {
                slnEvents = Environment.Events.SolutionEvents;
            }

            Environment.CoreCmdSender = this;
            attachCommandEvents();

            Log._.Received -= onLogReceived;
            Log._.Received += onLogReceived;

            //TODO: extract all below into new methods. It's valuable for CoreCommand etc.
            //+ do not forget about ClientLibrary, Provider, etc.

            this.Bootloader = new Bootloader(Environment, uvariable);
            this.Bootloader.register();

            Action = new Actions.Connection(
                new Actions.Command(Environment,
                                    new Script(Bootloader),
                                    new MSBuild.Parser(Environment, uvariable))
                );
        }
コード例 #2
0
        /// <summary>
        /// Initialize level
        /// </summary>
        protected void init()
        {
            Environment.CoreCmdSender = this;
            attachCommandEvents();

            this.Bootloader = new Bootloader(Environment, uvariable);
            this.Bootloader.register();

            Action = new Actions.Connection(
                            new Actions.Command(Environment,
                                         new Script(Bootloader),
                                         new MSBuild.Parser(Environment, uvariable))
            );
        }