protected override void ProcessRecord()
        {
            var cmd = ApplicationBindingCommandFactory.CreateApplicationHostEnumerationCommand(ResolvedApplicationBindingType);

            cmd.Initialize(this)
            .Execute(WriteVerbose);
            cmd.Hosts.ForEach(WriteObject);
        }
Esempio n. 2
0
 protected override void ProcessRecord()
 {
     WriteInformation($"BizTalk Application {ResolvedApplicationBindingType.FullName} is being initialized...", null);
     ApplicationBindingCommandFactory
     .CreateApplicationStateInitializationCommand(ResolvedApplicationBindingType)
     .Initialize(this)
     .Execute(msg => WriteInformation(msg, null));
     WriteInformation($"BizTalk Application {ResolvedApplicationBindingType.FullName} has been initialized.", null);
 }
 protected override void ProcessRecord()
 {
     WriteInformation($"BizTalk Application {ResolvedApplicationBindingType.FullName} bindings are being converted to XML...", null);
     ApplicationBindingCommandFactory
     .CreateApplicationBindingGenerationCommand(ResolvedApplicationBindingType)
     .Initialize(this)
     .Execute(msg => WriteInformation(msg, null));
     WriteInformation($"BizTalk Application {ResolvedApplicationBindingType.FullName} bindings have been converted to XML.", null);
 }
 protected override void ProcessRecord()
 {
     WriteInformation($"BizTalk Application {ResolvedApplicationBindingType.FullName} file adapters' folders are being installed...", null);
     ApplicationBindingCommandFactory
     .CreateApplicationFileAdapterFolderSetupCommand(ResolvedApplicationBindingType)
     .Initialize(this)
     .Execute(msg => WriteInformation(msg, null));
     WriteInformation($"BizTalk Application {ResolvedApplicationBindingType.FullName} file adapters' folders have been installed.", null);
 }
 protected override void ProcessRecord()
 {
     WriteVerbose($"BizTalk Application's expected state {ResolvedApplicationBindingType.FullName} is being tested...");
     try
     {
         ApplicationBindingCommandFactory
         .CreateApplicationStateValidationCommand(ResolvedApplicationBindingType)
         .Initialize(this)
         .Execute(WriteVerbose);
         WriteObject(true);
     }
     catch (Exception exception)
     {
         if (exception.IsFatal())
         {
             throw;
         }
         WriteVerbose(exception.ToString());
         WriteObject(false);
     }
     WriteVerbose($"BizTalk Application's expected state {ResolvedApplicationBindingType.FullName} has been tested.");
 }