public void TestMethod1()
        {
            var subscribeTask = new Task(ProcessMessagesFromQueue);

            subscribeTask.Start();

            MessagePublisher.PublishApplicationMessage("test topic", "message");
        }
Exemple #2
0
        public NotificationCollection SaveShift(Shift shift)
        {
            var result = repository.Save(shift);

            if (!result.HasErrors())
            {
                MessagePublisher.PublishApplicationMessage(MessageTopics.ShiftUpdated, shift.Id);
            }

            return(result);
        }