Fix code formatting in MessagePort
authorSeungkeun Lee <sngn.lee@samsung.com>
Tue, 5 Apr 2016 06:14:38 +0000 (15:14 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Tue, 5 Apr 2016 06:14:38 +0000 (15:14 +0900)
Change-Id: I71079b14f1d37f44c1e431c58004d68e04b0091e

Tizen.Applications/Tizen.Applications.Messages/MessagePort.cs
Tizen.Applications/Tizen.Applications.Messages/MessagePortErrorFactory.cs
Tizen.Applications/Tizen.Applications.Messages/RemoteValues.cs

index ac820fc..af25363 100755 (executable)
@@ -110,20 +110,23 @@ namespace Tizen.Applications.Messages
         /// </summary>
         public void Listen()
         {
-            lock(s_lock)
+            lock (s_lock)
             {
                 if (s_portMap.Contains(_portName))
                 {
                     throw new InvalidOperationException(_portName + " is already used");
                 }
-                _messageCallBack = (int localPortId, string remoteAppId, string remotePortName, bool trusted, IntPtr message, IntPtr userData) => {
-                    MessageReceivedEventArgs args = new MessageReceivedEventArgs() {
+                _messageCallBack = (int localPortId, string remoteAppId, string remotePortName, bool trusted, IntPtr message, IntPtr userData) =>
+                {
+                    MessageReceivedEventArgs args = new MessageReceivedEventArgs()
+                    {
                         Message = new Bundle(message)
                     };
 
                     if (!String.IsNullOrEmpty(remotePortName) && !String.IsNullOrEmpty(remoteAppId))
                     {
-                        args.Remote = new RemoteValues() {
+                        args.Remote = new RemoteValues()
+                        {
                             AppId = remoteAppId,
                             PortName = remotePortName,
                             Trusted = trusted
@@ -163,7 +166,7 @@ namespace Tizen.Applications.Messages
                 MessagePortErrorFactory.ThrowException(ret);
             }
 
-            lock(s_lock)
+            lock (s_lock)
             {
                 s_portMap.Remove(_portName);
             }
@@ -190,7 +193,7 @@ namespace Tizen.Applications.Messages
 
             if (ret != (int)MessagePortError.None)
             {
-                if (ret== (int)MessagePortError.MaxExceeded)
+                if (ret == (int)MessagePortError.MaxExceeded)
                 {
                     MessagePortErrorFactory.ThrowException(ret, "Message has exceeded the maximum limit(4KB)", "Message");
                 }
@@ -219,6 +222,5 @@ namespace Tizen.Applications.Messages
             Dispose(true);
             GC.SuppressFinalize(this);
         }
-
     }
 }
\ No newline at end of file
index dfacafe..69edaeb 100755 (executable)
@@ -21,7 +21,7 @@ namespace Tizen.Applications.Messages
     }
     internal static class MessagePortErrorFactory
     {
-        internal static void ThrowException(int errorCode, string errorMessage=null, string paramName=null)
+        internal static void ThrowException(int errorCode, string errorMessage = null, string paramName = null)
         {
             MessagePortError err = (MessagePortError)errorCode;
             if (String.IsNullOrEmpty(errorMessage))
index 191f69b..f11cfff 100755 (executable)
@@ -14,7 +14,8 @@ namespace Tizen.Applications.Messages
         /// <summary>
         /// The ID of the remote application that sent this message
         /// </summary>
-        public string AppId {
+        public string AppId
+        {
             get; set;
         }
         /// <summary>