Beispiel #1
0
 public void RecievingInformationMessage(InformationMessage message)
 {
     _syncContext.Post(m =>
                           {
                               addToList(m);
                               if (MessageArrived != null)
                                   MessageArrived(this, new MessageRecievedEventArgs(MessageType.Information));
                           }, message.Message);
 }
Beispiel #2
0
        private void tryAddProject(string project)
		{
			try
			{
				_cache.Add<Project>(Path.GetFullPath(project));
			}
			catch (Exception exception)
			{
				var messageString = string.Format("Failed parsing project {0}. Project will not be built. ({1})", project, exception.Message);
				var message = new InformationMessage(messageString);
				_bus.Publish<InformationMessage>(message);
			}
		}
 public void RecievingInformationMessage(InformationMessage message)
 {
     _informationmessage = message;
 }
Beispiel #4
0
 public InformationMessageEventArgs(InformationMessage message)
 {
     Message = message;
 }
        public void Should_be_able_to_consume_information_message()
        {
            var consumer = new InformationMessageConsumer(_bus);
            var message = new InformationMessage("");
            _bus.Publish<InformationMessage>(message);
            waitForAsyncCall();
            consumer.InformationMessageEventWasCalled.ShouldBeTrue();

        }
 public void RecievingInformationMessage(InformationMessage message)
 {
     _logger.Info(message.Message);
 }