bool ModifyThingPath(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String path) { if (true) // Decide whether to modify an item. { // We're going to do it. // Modify the item. // Raise event(s). serviceProtocol.DoThingPathModified(requestID, guid, path); return(true); } else { // We're not going to do it. return(false); } }
bool ModifyThingPath(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String path) { if (true) // Decide whether to modify an item. { // We're going to do it. // Modify the item. // Raise event(s). serviceProtocol.DoThingPathModified(requestID, guid, path); return true; } else { // We're not going to do it. return false; } }