Add ThrowConnectionException and Fix typo
authorchleun.moon <chleun.moon@samsung.com>
Thu, 5 Jan 2017 06:44:07 +0000 (15:44 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Thu, 5 Jan 2017 06:48:44 +0000 (15:48 +0900)
Change-Id: Idc195d91c31787ce2f70c58cc0ed22b8038ee97b
Signed-off-by: cheoleun <chleun.moon@samsung.com>
packaging/csapi-network-connection.spec
src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs

index 34e5bbf..bc83652 100644 (file)
@@ -1,6 +1,6 @@
 Name:       csapi-network-connection
 Summary:    Tizen Connection API for C#
-Version:    1.0.2
+Version:    1.0.3
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0
index 8b28568..3a6e50b 100644 (file)
@@ -106,7 +106,7 @@ namespace Tizen.Network.Connection
                 _EthernetCableStateChanged -= value;
                 if (_EthernetCableStateChanged == null)
                 {
-                    EthernetCableStateChangedtop();
+                    EthernetCableStateChangedStop();
                 }
             }
         }
@@ -117,15 +117,17 @@ namespace Tizen.Network.Connection
             if ((ConnectionError)ret != ConnectionError.None)
             {
                 Log.Error(Globals.LogTag, "It failed to register ethernet cable state changed callback, " + (ConnectionError)ret);
+                ConnectionErrorFactory.ThrowConnectionException(ret);
             }
         }
 
-        static private void EthernetCableStateChangedtop()
+        static private void EthernetCableStateChangedStop()
         {
             int ret = Interop.Connection.UnsetEthernetCableStateChagedCallback(ConnectionInternalManager.GetHandle());
             if ((ConnectionError)ret != ConnectionError.None)
             {
                 Log.Error(Globals.LogTag, "It failed to unregister ethernet cable state changed callback, " + (ConnectionError)ret);
+                ConnectionErrorFactory.ThrowConnectionException(ret);
             }
         }
 
@@ -274,7 +276,7 @@ namespace Tizen.Network.Connection
             }
             ProxyAddressChangedStop();
             ConnectionTypeChangedStop();
-            EthernetCableStateChangedtop();
+            EthernetCableStateChangedStop();
             IpAddressChangedStop();
             disposed = true;
         }