public MessageHandler(IMessageConsumer consumer, MessagingClient.EventDelegate callback)
        {
            this.consumer = consumer;
            this.callback = callback;

            AddListener();
        }
 public WorkflowsChangedMessageHandler(IMessageConsumer consumer, MessagingClient.EventDelegate callback)
     :base(consumer, callback)
 {
 }
 public WorkflowMessageHandler(IMessageConsumer consumer, MessagingClient.EventDelegate callback, int workflowId)
     :base(consumer, callback)
 {
     this.workflowId = workflowId;
 }
 public WorkflowEditorMessageHandler(IMessageConsumer consumer, MessagingClient.EventDelegate callback, int workflowId)
     :base(consumer, callback, workflowId)
 {
 }
        /// <summary>
        /// Methode, die aufgerufen wird, wenn das Fenster geladen wurde.
        /// Stellt die Serververbindungen her.
        /// </summary>
        /// <param name="o"></param>
        private void OnWindowLoaded(object o)
        {
            try
            {
                var restUrl = ConfigurationManager.AppSettings.Get("RestServerURL");
                var messageUrl = ConfigurationManager.AppSettings.Get("MessageServerURL");

                ClientSession.Instance.RelaxoClient = new RelaxoClient(restUrl);

                var client = new MessagingClient();
                client.Connect(messageUrl);
                ClientSession.Instance.MessageClient = client;
            }
            catch (Exception e)
            {
                ErrorMessage = e.Message;
                Debug.WriteLine(e.Message);
                Debug.WriteLine(e.StackTrace);
            }
        }