private void HandleUpdate(CallRequest request)
        {
            List <UpdateInfo> receivedUpdates = request.Args [0] as List <UpdateInfo>;

            if (ReceivedUpdates != null)
            {
                ReceivedUpdates(this, new UpdateEventArgs(receivedUpdates));
            }
        }
示例#2
0
        private void HandleUpdate(CallRequest request)
        {
            List <UpdateInfo> receivedUpdates = request.Args[0].ToObject <List <UpdateInfo> >();

            foreach (UpdateInfo update in receivedUpdates)
            {
                string entityGuid = update.entityGuid;
                string attribute  = update.attributeName;
                string component  = update.componentName;
                logger.Info("{0} updated attribute {1} of component {2}", entityGuid, attribute, component);
            }
        }
        private void HandleNewObject(CallRequest request)
        {
            Dictionary <string, object> entityInfo = request.Args [0] as Dictionary <string, object>;

            HandleNewObject(entityInfo);
        }
示例#4
0
        private void HandleNewObject(CallRequest request)
        {
            JToken entityInfo = request.Args[0];

            HandleNewObject(entityInfo);
        }
		private void HandleUpdate (CallRequest request)
		{
			List<UpdateInfo> receivedUpdates = request.Args [0] as List<UpdateInfo>;
			if (ReceivedUpdates != null)
				ReceivedUpdates (this, new UpdateEventArgs (receivedUpdates));
		}
		private void HandleNewObject (CallRequest request)
		{
			Dictionary<string, object> entityInfo = request.Args [0] as Dictionary<string, object>;
			HandleNewObject (entityInfo);
		}
 private void HandleUpdate(CallRequest request)
 {
     List<UpdateInfo> receivedUpdates = request.Args[0].ToObject<List<UpdateInfo>>();
     foreach(UpdateInfo update in receivedUpdates) {
         string entityGuid = update.entityGuid;
         string attribute = update.attributeName;
         string component = update.componentName;
         logger.Info("{0} updated attribute {1} of component {2}", entityGuid, attribute, component);
     }
 }
 private void HandleNewObject(CallRequest request)
 {
     JToken entityInfo = request.Args[0];
     HandleNewObject(entityInfo);
 }