private void HandleMessage(MyPublicEventMessage message) { Console.WriteLine($"Handle message on: {typeof(SecondLogicClass).FullName}"); Console.WriteLine($"MessageNumber: {message.MessageNumber} ; Message: {message.Message}"); _nestedSecondLogicClass.DoMagic(); }
public void RaiseMyPublicEventMessage() { var myPublicEventMessage = new MyPublicEventMessage() { Message = $"{nameof(PlugInLoader)} calls PlugIns with {nameof(MyPublicEventMessage)}!!!!", MessageNumber = _messageCount }; _eventBroker.Raise(myPublicEventMessage); _messageCount++; }
private void MessageHandler(MyPublicEventMessage message) { Console.WriteLine($"Handle message on: {typeof(MyPlugInLogicClass).FullName}"); Console.WriteLine($"MessageNumber: {message.MessageNumber} ; Message: {message.Message}"); }