public Orchestration GetOrchestration(string assemblyName, string orchestrationName)
        {
            Orchestration orch = null;

            try
            {
                this.InitExplorer(this.server, this.mgmtDatabaseName);

                BizTalkCore.BtsAssembly asm = null;

                foreach (BizTalk.ExplorerOM.BtsAssembly a in this.explorer.Assemblies)
                {
                    if (a.DisplayName == assemblyName)
                    {
                        asm = a;
                        break;
                    }
                }

                BizTalk.ExplorerOM.BtsOrchestration o = asm.Orchestrations[orchestrationName];

                orch = new Orchestration(o.FullName);
                orch.Load(this.explorer, o);
            }
            catch (Exception ex)
            {
                TraceManager.SmartTrace.TraceError(ex);
            }

            return(orch);
        }
Пример #2
0
 private void LoadOrchestrations(BtsCatalogExplorer explorer, Application application)
 {
     TraceManager.SmartTrace.TraceIn();
     // Orchestrations
     foreach (BizTalk.ExplorerOM.BtsOrchestration orchestration in application.Orchestrations)
     {
         TraceManager.SmartTrace.TraceInfo(orchestration.FullName);
         Orchestration o = new Orchestration(orchestration.FullName);
         o.Application = this;
         o.Load(explorer, orchestration);
         this.orchestrations.Add(o);
     }
     TraceManager.SmartTrace.TraceOut();
 }