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