Esempio n. 1
0
 public void publisher_DataPublisher1(object sender, MessageArgument <string> e)
 {
     Console.WriteLine("make up interested in :");
     Console.WriteLine(e.Message);
 }
Esempio n. 2
0
        //PublishData publisher class method that publish data to Subscribers
        public void PublishData(T data)
        {
            MessageArgument <T> message = (MessageArgument <T>)Activator.CreateInstance(typeof(MessageArgument <T>), new object[] { data });

            OnDataPublisher(message);
        }