Beispiel #1
0
 protected override void ProcessPOST(ConnectorBase Connector, Package package)
 {
     try
     {
         DataItemAdded projectAdded = XmlSerializationHelper.Desirialize <DataItemAdded>(package.Data);
         Project       newProject   = new Project()
         {
             pId = projectAdded.PK
         };
         lock (dataListLock)
         {
             dataList.Add(newProject.pId, newProject);
         }
     }
     catch (Exception ex)
     {
         RaiseLogEvent(LogType.Error, "ProjectNetList.ProcessPOST()" + ex.Message);
     }
     //base.ProcessPOST(t14Lab.MessageTree.Connector, package);
 }
Beispiel #2
0
 protected override void ProcessPOST(ConnectorBase Connector, Package package)
 {
     try
     {
         DataItemAdded todoAdded = XmlSerializationHelper.Desirialize <DataItemAdded>(package.Data);
         Todo          newTodo   = new Todo()
         {
             pId = todoAdded.PK
         };
         if (newTodo.pId == null)
         {
             newTodo.pId = Guid.NewGuid();
         }
         lock (dataListLock)
         {
             dataList.Add(newTodo.pId, newTodo);
         }
     }
     catch (Exception ex)
     {
         RaiseLogEvent(LogType.Error, "TodoNetList.ProcessPOST()" + ex.Message);
     }
     //base.ProcessPOST(t14Lab.MessageTree.Connector, package);
 }