X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Network.WiFi%2FTizen.Network.WiFi%2FWiFiManager.cs;h=96d613c7e51fcd7a456f634df42705b95be5b449;hb=7cb7a36b440e86b34b02ba68bc3610030d606999;hp=1f2dbc98ff9c3418f07e2c564dbc4001085773b1;hpb=c5812f11a596adda421262207d8855ed94db47a0;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs index 1f2dbc9..96d613c 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManager.cs @@ -25,9 +25,12 @@ namespace Tizen.Network.WiFi /// /// A class for managing the WiFiManager handle. /// + /// 3 [EditorBrowsable(EditorBrowsableState.Never)] public sealed class SafeWiFiManagerHandle : SafeHandle { + private int tid; + internal SafeWiFiManagerHandle() : base(IntPtr.Zero, true) { } @@ -36,6 +39,7 @@ namespace Tizen.Network.WiFi /// Checks the validity of the handle. /// /// Represents the validity of the handle. + /// 3 public override bool IsInvalid { get @@ -44,16 +48,28 @@ namespace Tizen.Network.WiFi } } + /// + /// Release the handle + /// protected override bool ReleaseHandle() { - Interop.WiFi.Deinitialize(this.handle); + Interop.WiFi.Deinitialize(tid, this.handle); this.SetHandle(IntPtr.Zero); return true; } + + internal int TID + { + set + { + tid = value; + Log.Info(Globals.LogTag, "New Handle for Thread " + tid); + } + } } /// - /// A manager class which allows applications to connect to a Wireless Local Area Network (WLAN) and transfer data over the network.
+ /// A manager class which allows applications to connect to a Wireless Local Area Network (WLAN) and transfer data over the network. /// The Wi-Fi Manager enables your application to activate and deactivate a local Wi-Fi device, and to connect to a WLAN network in the infrastructure mode. ///
/// 3