Change-Id: I874acc0654e0ff4bc440cc5e042d5f69d20aef2e
/// </code>
public static void RegisterResource(Resource resource)
{
- Log.Error(IoTConnectivityErrorFactory.LogTag, "...");
+ Log.Info(IoTConnectivityErrorFactory.LogTag, "...");
IntPtr id = IntPtr.Zero;
lock (s_RequestHandlerCallbackMap)
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get type");
return null;
}
- if (typeHandle == IntPtr.Zero)
- return null;
- else
- return new ResourceTypes(typeHandle);
+ return (typeHandle == IntPtr.Zero) ? null : new ResourceTypes(typeHandle);
}
set
{