コード例 #1
0
        /// <summary>
        /// Executes the task.
        /// </summary>
        /// <returns>Indicating if the task was successful.</returns>
        public override bool Execute()
        {
            BizTalkApplication bizTalkApplication = new BizTalkApplication(ManagementDatabaseConnectionString, ApplicationName);
            foreach (ITaskItem orchestrationName in this.OrchestrationNames)
            {
                Log.LogMessage("Terminating Orchestration '{0}' for BizTalk application '{1}'.", orchestrationName.ItemSpec, ApplicationName);
                bizTalkApplication.TerminateOrchestration(orchestrationName.ItemSpec);
            }

            return true;
        }