private void HandleUpdate(CallRequest request) { List <UpdateInfo> receivedUpdates = request.Args [0] as List <UpdateInfo>; if (ReceivedUpdates != null) { ReceivedUpdates(this, new UpdateEventArgs(receivedUpdates)); } }
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); }
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); } }