public void ShowMessage(object sender, Message messageFormat)
        {
            PublisherAndSubscriber pubSub = (PublisherAndSubscriber)sender;

            Console.WriteLine("Subscriber : " + this.type + "=> Message publish by " + pubSub.type + ":" + messageFormat.message);
        }
 public async Task UnSubscribeMessage(PublisherAndSubscriber pubSub)
 {
     pubSub.publishEvent -= ShowMessage;
 }