/// <summary> /// Requests an object's properties. /// </summary> /// <param name="objectPath"></param> public void RequestObjectProperties(ObjectPath objectPath, ObjectRecievedHandler handler) { RequestObjectProperties(objectPath.ToString(), handler); }
/// <summary> /// Requests an object's properties. /// </summary> /// <param name="objectPath"></param> public void RequestObjectProperties(string objectPath, ObjectRecievedHandler handler) { if (!m_requests.ContainsKey(objectPath)) { // // If this request has not yet been made, prepare the request bucket. // m_requests.Add(objectPath, new ArrayList()); ((ArrayList) m_requests[objectPath]).Add(handler); } else { // // If this request has already been made, just add another callback // and return. // ((ArrayList) m_requests[objectPath]).Add(handler); return; } ObjectPropertyRequest request = new ObjectPropertyRequest(objectPath); m_socket.Send(request); }