예제 #1
0
        public void PublishData(T data)
        {
            MessageArgument <T> message = (MessageArgument <T>)Activator.CreateInstance(typeof(MessageArgument <T>), new object[] { data });

            OnDataPublisher(message);
        }
예제 #2
0
 void publisher_DataPublisher2(object sender, MessageArgument <int> e)
 {
     Console.WriteLine("Subscriber 2 : " + e.Message);
 }
예제 #3
0
 public void OnDataPublisher(MessageArgument <T> args)
 {
     DataPublisher?.Invoke(this, args);
 }