private void EnqueueMessage(BusinessObjects.WorkManagement.Appointment messageBody, string messageLabel) { FinalBuild.QueueWriter objMessageWriter = null; string strQueuePath = @"FormatName:Direct=OS:cs717189\private$\JobAppointmentQueue"; if (ConfigurationManager.AppSettings["JobAppointmentQueue"] != null) { strQueuePath = ConfigurationManager.AppSettings["JobAppointmentQueue"]; } objMessageWriter = new FinalBuild.QueueWriter(strQueuePath, true); objMessageWriter.MessageWritten += new FinalBuild.QueueWriter.MessageWrittenHandler(mobjMessageWriter_MessageWritten); objMessageWriter.WriteToQueue(messageBody, messageBody.GetType(), messageLabel); }
protected object GetPropertyValue(BusinessObjects.BusinessObject businessObject) { return businessObject.GetType().GetProperty( PropertyName).GetValue(businessObject, null); }