From db1ad9dd93b9634507b286b1fe8ac92a33a4b890 Mon Sep 17 00:00:00 2001
From: Seonah Moon <31679495+SeonahMoon@users.noreply.github.com>
Date: Thu, 26 Apr 2018 17:21:22 +0900
Subject: [PATCH] [Connection][WiFi] Add description for thread safety (#233)
---
.../Tizen.Network.Connection/ConnectionProfileManager.cs | 9 +++++++++
src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs | 12 +++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfileManager.cs b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfileManager.cs
index e205c48..a0d1ae6 100755
--- a/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfileManager.cs
+++ b/src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionProfileManager.cs
@@ -80,6 +80,9 @@ namespace Tizen.Network.Connection
/// 3
/// The connection profile object.
/// A task indicates whether the ConnectProfileAsync method is done successfully or not.
+ ///
+ /// This method must be called from MainThread.
+ ///
/// http://tizen.org/privilege/network.get
/// http://tizen.org/privilege/network.set
/// http://tizen.org/feature/network.telephony
@@ -104,6 +107,9 @@ namespace Tizen.Network.Connection
/// 3
/// The connection profile object.
/// A task indicates whether the DisconnectProfileAsync method is done successfully or not.
+ ///
+ /// This method must be called from MainThread.
+ ///
/// http://tizen.org/privilege/network.get
/// http://tizen.org/privilege/network.set
/// http://tizen.org/feature/network.telephony
@@ -220,6 +226,9 @@ namespace Tizen.Network.Connection
/// The cellular service type.
/// The connection profile object.
/// A task indicates whether the SetDefaultCellularProfile method is done successfully or not.
+ ///
+ /// This method must be called from MainThread.
+ ///
/// http://tizen.org/privilege/network.get
/// http://tizen.org/privilege/network.profile
/// http://tizen.org/feature/network.telephony
diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs
index 01c3156..9194a20 100644
--- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs
+++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs
@@ -203,6 +203,9 @@ namespace Tizen.Network.WiFi
///
/// 3
/// A task indicating whether the connect method is done or not.
+ ///
+ /// This method must be called from MainThread.
+ ///
/// http://tizen.org/feature/network.wifi
/// http://tizen.org/privilege/network.set
/// http://tizen.org/privilege/network.get
@@ -271,6 +274,9 @@ namespace Tizen.Network.WiFi
/// 3
/// A WpsInfo instance which is type of WpsPbcInfo or WpsPinInfo.
/// A task indicating whether the ConnectWps method is done or not.
+ ///
+ /// This method must be called from MainThread.
+ ///
/// http://tizen.org/feature/network.wifi
/// http://tizen.org/privilege/network.profile
/// http://tizen.org/privilege/network.get
@@ -363,7 +369,8 @@ namespace Tizen.Network.WiFi
/// A WpsInfo instance which is of type WpsPbcInfo or WpsPinInfo.
/// A task which contains Connected access point information.
///
- /// If WpsPinInfo is used, its object has to be constructed with a pin which must be 4 or 8 characters long.
+ /// If WpsPinInfo is used, its object has to be constructed with a pin which must be 4 or 8 characters long. \n
+ /// This method must be called from MainThread.
///
/// http://tizen.org/feature/network.wifi
/// http://tizen.org/privilege/network.set
@@ -452,6 +459,9 @@ namespace Tizen.Network.WiFi
///
/// 3
/// A task indicating whether the disconnect method is done or not.
+ ///
+ /// This method must be called from MainThread.
+ ///
/// http://tizen.org/feature/network.wifi
/// http://tizen.org/privilege/network.set
/// http://tizen.org/privilege/network.get
--
2.7.4