public static DeploymentInterface Get()
        {
            if (DeployTimeInstance == null)
            {
                if (DeploymentServerProcess == null)
                {
                    DeploymentServerProcess = CreateDeploymentServerProcess();
                }
                DeployTimeInstance = (DeploymentInterface)Activator.GetObject(
                    typeof(DeploymentInterface),
                    @"ipc://iPhonePackager/DeploymentServer_PID" + Process.GetCurrentProcess().Id.ToString());
            }

            if (DeployTimeInstance == null)
            {
                Program.Error("Failed to connect to deployment server");
                throw new Exception("Failed to connect to deployment server");
            }

            DeployTimeInstance.SetReportingInterface(Reporter);

            return(DeployTimeInstance);
        }
Ejemplo n.º 2
0
        public static DeploymentInterface Get()
        {
            if (DeployTimeInstance == null)
            {
                if (DeploymentServerProcess == null)
                {
                    DeploymentServerProcess = CreateDeploymentServerProcess();
                }

                DeployTimeInstance = (DeploymentInterface)Activator.GetObject(
                  typeof(DeploymentInterface),
                  @"ipc://iPhonePackager/DeploymentServer_PID" + Process.GetCurrentProcess().Id.ToString());
            }

            if (DeployTimeInstance == null)
            {
                Program.Error("Failed to connect to deployment server");
                throw new Exception("Failed to connect to deployment server");
            }

            DeployTimeInstance.SetReportingInterface(Reporter);

            return DeployTimeInstance;
        }