示例#1
0
 /// <summary>
 /// 查找DeviceKey下的对应 device 对象
 /// </summary>
 /// <param name="tokenKey">DeviceKey</param>
 /// <returns></returns>
 public DeviceResponse FindByDeviceKey(string deviceKey)
 {
     try
     {
         return(mc.GetObject(deviceKey) as DeviceResponse);
     }
     catch
     {
         return(null);
     }
 }