From: Hongkuk, Son Date: Tue, 12 Sep 2017 10:38:13 +0000 (+0900) Subject: [IoTConnectivity] Set EventContinue as true when ResourceFound/PlatformInformationFound X-Git-Tag: preview1-00194^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fbf0c7609decacd945f592073327a151b5df657;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [IoTConnectivity] Set EventContinue as true when ResourceFound/PlatformInformationFound - If there is no default value for EventContinue, then it is set as false. In app side(ex, C#TCT), if cb is called and if it doesn't set EventContinue more, then it is recognized as false, so next found cb will never be called. - So now, fix to set it as true when ResourceFound/PlatformInformationFound. - When DeviceInformationFound, it was already set as true. Signed-off-by: Hongkuk, Son Change-Id: I3d827c335fea2c95036ca9295e62c4d774001139 --- diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs index 9da873d..3d042e0 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs @@ -515,6 +515,7 @@ namespace Tizen.Network.IoTConnectivity ResourceFoundEventArgs e = new ResourceFoundEventArgs() { RequestId = requestId, + EventContinue = true, Resource = resource }; ResourceFound?.Invoke(null, e); @@ -924,6 +925,7 @@ namespace Tizen.Network.IoTConnectivity PlatformInformationFoundEventArgs e = new PlatformInformationFoundEventArgs() { RequestId = requestId, + EventContinue = true, PlatformId = (platformId != IntPtr.Zero) ? Marshal.PtrToStringAnsi(platformId) : string.Empty, ManufacturerName = (manufacturerName != IntPtr.Zero) ? Marshal.PtrToStringAnsi(manufacturerName) : string.Empty, ManufacturerURL = (manufacturerUrl != IntPtr.Zero) ? Marshal.PtrToStringAnsi(manufacturerUrl) : string.Empty,