예제 #1
0
        protected void AddData <T>(T objectData)
        {
            var dataPackage = new DataPackage(objectData);

            SendDataPackage(dataPackage);
        }
예제 #2
0
        protected void AddData(string name, object data)
        {
            var dataPackage = new DataPackage(name, data);

            SendDataPackage(dataPackage);
        }
예제 #3
0
 protected virtual void OnNotification(string name, DataPackage dataPackage)
 {
     IsNotificationHandled(name, dataPackage);
 }
예제 #4
0
 public void Send(string name, DataPackage dataObject)
 {
     OnNotification(name, dataObject);
 }
예제 #5
0
 public DataPackage GetData(string objectName, DataPackage dataObject)
 {
     OnNotification(objectName, dataObject);
     return(ReturnData);
 }