private void HandleMessage(MyPublicEventMessage message)
        {
            Console.WriteLine($"Handle message on: {typeof(SecondLogicClass).FullName}");

            Console.WriteLine($"MessageNumber: {message.MessageNumber} ; Message: {message.Message}");

            _nestedSecondLogicClass.DoMagic();
        }
Esempio n. 2
0
        public void RaiseMyPublicEventMessage()
        {
            var myPublicEventMessage = new MyPublicEventMessage()
            {
                Message       = $"{nameof(PlugInLoader)} calls PlugIns with {nameof(MyPublicEventMessage)}!!!!",
                MessageNumber = _messageCount
            };

            _eventBroker.Raise(myPublicEventMessage);

            _messageCount++;
        }
Esempio n. 3
0
        private void MessageHandler(MyPublicEventMessage message)
        {
            Console.WriteLine($"Handle message on: {typeof(MyPlugInLogicClass).FullName}");

            Console.WriteLine($"MessageNumber: {message.MessageNumber} ; Message: {message.Message}");
        }