Change the modifier of Dispose
authorchleun.moon <chleun.moon@samsung.com>
Wed, 26 Jul 2017 10:21:14 +0000 (19:21 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Wed, 26 Jul 2017 10:22:27 +0000 (19:22 +0900)
Change-Id: I6bd4171d1bb7d6cd4fdd1ef764950c8a181ac839
Signed-off-by: cheoleun <chleun.moon@samsung.com>
packaging/csapi-network-nsd.spec
src/Tizen.Network.Nsd/Tizen.Network.Nsd.csproj
src/Tizen.Network.Nsd/Tizen.Network.Nsd/DnssdService.cs
src/Tizen.Network.Nsd/Tizen.Network.Nsd/SsdpService.cs

index d9c09f8c70f6dc995630599491dc86830c4d4dfa..f2cb4044c1a9dd8e4ac2b5697eb0d948c1e01c3b 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       csapi-network-nsd
 Summary:    Tizen NSD API for C#
-Version:    1.0.2
+Version:    1.0.3
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0
index 2b2da403e06e48bb305c133bd91d94a6e238148d..9ae1f6938959c216ed05abf561a7f46a408abdc3 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
   <PropertyGroup>
-    <Version>1.0.2</Version>
+    <Version>1.0.3</Version>
     <Authors>Samsung Electronics</Authors>
     <Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>
     <Description>Provides the DNSSD and SSDP APIs for Tizen .NET</Description>
index 37fd53bee40426b5604f10c85df1b9572a07295a..803c6b8b661469804bd81d851750c9def7383134 100755 (executable)
@@ -353,7 +353,7 @@ namespace Tizen.Network.Nsd
         #region IDisposable Support
         private bool _disposedValue = false; // To detect redundant calls
 
-        protected virtual void Dispose(bool disposing)
+        private void Dispose(bool disposing)
         {
             if (!_disposedValue)
             {
@@ -415,6 +415,8 @@ namespace Tizen.Network.Nsd
         {
             get
             {
+                if (_ipv4 == null)
+                    return IPAddress.Parse("0.0.0.0");
                 return IPAddress.Parse(_ipv4);
             }
         }
@@ -427,6 +429,8 @@ namespace Tizen.Network.Nsd
         {
             get
             {
+                if (_ipv6 == null)
+                    return IPAddress.Parse("0:0:0:0:0:0:0:0");
                 return IPAddress.Parse(_ipv6);
             }
         }
index 126b7ef5c629a42c7e6ff45ed30e84b09656b740..25cc8f3e2c532db09bcb296669b06b2729b1f418 100755 (executable)
@@ -242,7 +242,7 @@ namespace Tizen.Network.Nsd
         #region IDisposable Support
         private bool _disposedValue = false; // To detect redundant calls
 
-        protected virtual void Dispose(bool disposing)
+        private void Dispose(bool disposing)
         {
             if (!_disposedValue)
             {