protected void AddData <T>(T objectData) { var dataPackage = new DataPackage(objectData); SendDataPackage(dataPackage); }
protected void AddData(string name, object data) { var dataPackage = new DataPackage(name, data); SendDataPackage(dataPackage); }
protected virtual void OnNotification(string name, DataPackage dataPackage) { IsNotificationHandled(name, dataPackage); }
public void Send(string name, DataPackage dataObject) { OnNotification(name, dataObject); }
public DataPackage GetData(string objectName, DataPackage dataObject) { OnNotification(objectName, dataObject); return(ReturnData); }