From: chleun.moon Date: Tue, 25 Jul 2017 09:46:07 +0000 (+0900) Subject: Added CellularAuthInfo member variable to CellularProfile class X-Git-Tag: submit/trunk/20170823.075128~116^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37f7b75c2c9fe1420d44e8fb52cdea28544e1fc4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Added CellularAuthInfo member variable to CellularProfile class Change-Id: I2879ca13180cee3ab1bf561c273a572a108dab67 Signed-off-by: cheoleun --- diff --git a/packaging/csapi-network-connection.spec b/packaging/csapi-network-connection.spec index f107151..cf77b11 100755 --- 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.19 +Version: 1.0.20 Release: 1 Group: Development/Libraries License: Apache-2.0 diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection.csproj b/src/Tizen.Network.Connection/Tizen.Network.Connection.csproj index 2ab4365..e7d758b 100644 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection.csproj +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection.csproj @@ -1,7 +1,7 @@  - 1.0.19 + 1.0.20 Samsung Electronics © Samsung Electronics Co., Ltd All Rights Reserved Provides the Connection APIs for Tizen .NET diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs index 325bc45..86658a2 100755 --- a/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs +++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs @@ -32,6 +32,8 @@ namespace Tizen.Network.Connection { } + private CellularAuthInformation _cellularAuthInfo = null; + ~CellularProfile() { } @@ -272,11 +274,12 @@ namespace Tizen.Network.Connection return null; } - CellularAuthInformation AuthInfo = new CellularAuthInformation(); - AuthInfo.AuthType = (CellularAuthType)type; - AuthInfo.UserName = name; - AuthInfo.Password = password; - return AuthInfo; + if (_cellularAuthInfo == null) + _cellularAuthInfo = new CellularAuthInformation(); + _cellularAuthInfo.AuthType = (CellularAuthType)type; + _cellularAuthInfo.UserName = name; + _cellularAuthInfo.Password = password; + return _cellularAuthInfo; } set @@ -284,10 +287,10 @@ namespace Tizen.Network.Connection CheckDisposed(); if (value != null) { - CellularAuthInformation AuthInfo = value; - int type = (int)AuthInfo.AuthType; - string name = AuthInfo.UserName; - string password = AuthInfo.Password; + _cellularAuthInfo = value; + int type = (int)_cellularAuthInfo.AuthType; + string name = _cellularAuthInfo.UserName; + string password = _cellularAuthInfo.Password; int ret = Interop.ConnectionCellularProfile.SetAuthInfo(ProfileHandle, type, name, password); if ((ConnectionError)ret != ConnectionError.None) {