public void RecievingWarningMessage(WarningMessage message) { _syncContext.Post(m => { addToList(m); if (MessageArrived != null) MessageArrived(this, new MessageRecievedEventArgs(MessageType.Warning)); }, message.Warning); }
public void RecievingWarningMessage(WarningMessage message) { _warningMessage = message; }
public WarningMessageEventArgs(WarningMessage message) { Message = message; }
public void Should_be_able_to_consume_warning_messages() { var consumer = new InformationMessageConsumer(_bus); var message = new WarningMessage("some warning"); _bus.Publish(message); waitForAsyncCall(); consumer.WarningMessageEventWasCalled.ShouldBeTrue(); }
public void RecievingWarningMessage(WarningMessage message) { _logger.Warn(message.Warning); }