aboutsummaryrefslogtreecommitdiff
path: root/RSSDP
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2018-12-19 21:39:58 -0500
committerGitHub <noreply@github.com>2018-12-19 21:39:58 -0500
commit0fa52f417781b5e418f6027c031246936395d406 (patch)
treea206d16459f842e594c15ac1fdcd8eff37460108 /RSSDP
parent2df4e5a564d05b8e9755a080a232f6f0ee0095f0 (diff)
parent1a2153c3997f4624512182c747aec4ca0da1f5ed (diff)
Merge pull request #184 from Bond-009/warnings
[WIP] Remove warnings
Diffstat (limited to 'RSSDP')
-rw-r--r--RSSDP/DiscoveredSsdpDevice.cs4
-rw-r--r--RSSDP/SsdpDeviceLocator.cs4
-rw-r--r--RSSDP/SsdpDevicePublisher.cs13
3 files changed, 12 insertions, 9 deletions
diff --git a/RSSDP/DiscoveredSsdpDevice.cs b/RSSDP/DiscoveredSsdpDevice.cs
index 66b8bea36a..7e70817ddf 100644
--- a/RSSDP/DiscoveredSsdpDevice.cs
+++ b/RSSDP/DiscoveredSsdpDevice.cs
@@ -17,7 +17,6 @@ namespace Rssdp
#region Fields
- private SsdpRootDevice _Device;
private DateTimeOffset _AsAt;
#endregion
@@ -55,7 +54,6 @@ namespace Rssdp
if (_AsAt != value)
{
_AsAt = value;
- _Device = null;
}
}
}
@@ -93,4 +91,4 @@ namespace Rssdp
#endregion
}
-} \ No newline at end of file
+}
diff --git a/RSSDP/SsdpDeviceLocator.cs b/RSSDP/SsdpDeviceLocator.cs
index 6a61a52f3e..32289822f9 100644
--- a/RSSDP/SsdpDeviceLocator.cs
+++ b/RSSDP/SsdpDeviceLocator.cs
@@ -124,7 +124,7 @@ namespace Rssdp.Infrastructure
{
await SearchAsync(CancellationToken.None).ConfigureAwait(false);
}
- catch (Exception ex)
+ catch (Exception)
{
}
@@ -621,4 +621,4 @@ namespace Rssdp.Infrastructure
#endregion
}
-} \ No newline at end of file
+}
diff --git a/RSSDP/SsdpDevicePublisher.cs b/RSSDP/SsdpDevicePublisher.cs
index 8d57deb5ef..cee9b7f911 100644
--- a/RSSDP/SsdpDevicePublisher.cs
+++ b/RSSDP/SsdpDevicePublisher.cs
@@ -310,11 +310,16 @@ namespace Rssdp.Infrastructure
try
{
- await _CommsServer.SendMessage(System.Text.Encoding.UTF8.GetBytes(message), endPoint, receivedOnlocalIpAddress, cancellationToken).ConfigureAwait(false);
+ await _CommsServer.SendMessage(
+ System.Text.Encoding.UTF8.GetBytes(message),
+ endPoint,
+ receivedOnlocalIpAddress,
+ cancellationToken)
+ .ConfigureAwait(false);
}
- catch (Exception ex)
+ catch (Exception)
{
-
+
}
//WriteTrace(String.Format("Sent search response to " + endPoint.ToString()), device);
@@ -558,4 +563,4 @@ namespace Rssdp.Infrastructure
}
}
}
-} \ No newline at end of file
+}