From fc52d1331c4fab55eca07c8ff4bb5064d79aac7f Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Tue, 25 Jul 2017 18:46:07 +0900 Subject: [PATCH] Added CellularAuthInfo member variable to CellularProfile class Change-Id: I2879ca13180cee3ab1bf561c273a572a108dab67 Signed-off-by: cheoleun --- .../Tizen.Network.Connection.csproj | 2 +- .../Tizen.Network.Connection/CellularProfile.cs | 21 ++++++++++++--------- packaging/csapi-network-connection.spec | 2 +- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Tizen.Network.Connection/Tizen.Network.Connection.csproj b/Tizen.Network.Connection/Tizen.Network.Connection.csproj index 2ab4365..e7d758b 100644 --- a/Tizen.Network.Connection/Tizen.Network.Connection.csproj +++ b/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/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs b/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs index 325bc45..86658a2 100755 --- a/Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs +++ b/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) { 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 -- 2.7.4