Exemple #1
0
        /// <summary>
        /// Create new broker process
        /// </summary>
        private void CreateNewBrokerProcess(object state)
        {
            BrokerProcess process = new BrokerProcess();

            process.Ready  += new EventHandler <BrokerProcessReadyEventArgs>(this.BrokerProcess_Ready);
            process.Exited += new EventHandler(this.BrokerProcess_Exited);
            process.Start();
        }
Exemple #2
0
        /// <summary>
        /// Create custom broker process
        /// </summary>
        /// <param name="customBrokerRegistration">indicating the custom broker registration</param>
        /// <returns>returns the broker process object</returns>
        private static BrokerProcess CreateCustomBrokerProcess(CustomBrokerRegistration customBroker)
        {
            BrokerProcess process = new BrokerProcess(customBroker.Executive, customBroker.EnvironmentVariables);

            process.Start();
            process.WaitForReady();
            return(process);
        }