private void Test(Mymessage test) { Console.WriteLine(test.ToString()); Debug.WriteLine(test.ToString()); eventAggregator.UnSbscribe(myMessageToken); }
public void PublishMessage(Mymessage mymessage) { EventAggregator.Publish(mymessage); //EventAggregator.Publish(10);k }