private void IsAlive(Guid guid)
 {
     try
     {
         Legacy.IsAlive isAlive = _schedulingCommunicationChannel.IsAlive(guid);
         MessageBox.Show(string.Format("State: {0}\n OutCome: {1}\n Progress: {2}", isAlive.State, isAlive.OutCome, isAlive.Progress));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        public Legacy.IsAlive GetStatus(string accountid, string guid)
        {
            Guid unplannedGuid = Guid.Parse(guid);

            Legacy.IsAlive status;
            ChannelFactory <ISchedulingCommunication> channel = new ChannelFactory <ISchedulingCommunication>("SeperiaSchedulerCommunication");
            ISchedulingCommunication schedulingCommunication  = channel.CreateChannel();

            status = schedulingCommunication.IsAlive(unplannedGuid);



            return(status);
        }