[IoTConnectivity] Set EventContinue as true when ResourceFound/PlatformInformationFound 23/149523/2 preview1-00194
authorHongkuk, Son <hongkuk.son@samsung.com>
Tue, 12 Sep 2017 10:38:13 +0000 (19:38 +0900)
committerHongkuk, Son <hongkuk.son@samsung.com>
Tue, 12 Sep 2017 12:00:01 +0000 (21:00 +0900)
 - 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 <hongkuk.son@samsung.com>
Change-Id: I3d827c335fea2c95036ca9295e62c4d774001139

src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/IoTConnectivityClientManager.cs

index 9da873d..3d042e0 100755 (executable)
@@ -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,