From 9321c3db16fa587fe2acb7b325cf95a22a4437b8 Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Thu, 5 Jan 2017 15:44:07 +0900 Subject: [PATCH] Add ThrowConnectionException and Fix typo Change-Id: Idc195d91c31787ce2f70c58cc0ed22b8038ee97b Signed-off-by: cheoleun --- packaging/csapi-network-connection.spec | 2 +- .../Tizen.Network.Connection/ConnectionManager.cs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packaging/csapi-network-connection.spec b/packaging/csapi-network-connection.spec index 34e5bbf..bc83652 100644 --- a/packaging/csapi-network-connection.spec +++ b/packaging/csapi-network-connection.spec @@ -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 diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs index 8b28568..3a6e50b 100644 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionManager.cs @@ -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; } -- 2.7.4