aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpEmbeddedDevice.cs
diff options
context:
space:
mode:
authorLogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>2019-01-23 00:31:35 -0800
committerGitHub <noreply@github.com>2019-01-23 00:31:35 -0800
commit404bd04cbc17dc8c8bf4a5c9aa3ca9c5cd85aa68 (patch)
tree3d267c6ceef9439a034c113095e10e4d619e7c70 /RSSDP/SsdpEmbeddedDevice.cs
parent8ff89fdc0c30f595a171ffc550f907ef22b6212a (diff)
parente05e002b8bb4d13eb2b80b56a0aad8903ddb701e (diff)
Merge pull request #8 from jellyfin/master
rebase to latest master
Diffstat (limited to 'RSSDP/SsdpEmbeddedDevice.cs')
-rw-r--r--RSSDP/SsdpEmbeddedDevice.cs102
1 files changed, 50 insertions, 52 deletions
diff --git a/RSSDP/SsdpEmbeddedDevice.cs b/RSSDP/SsdpEmbeddedDevice.cs
index dca1ff5e3..6f05518a9 100644
--- a/RSSDP/SsdpEmbeddedDevice.cs
+++ b/RSSDP/SsdpEmbeddedDevice.cs
@@ -1,57 +1,55 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Text;
namespace Rssdp
{
- /// <summary>
- /// Represents a device that is a descendant of a <see cref="SsdpRootDevice"/> instance.
- /// </summary>
- public class SsdpEmbeddedDevice : SsdpDevice
- {
-
- #region Fields
-
- private SsdpRootDevice _RootDevice;
-
- #endregion
-
- #region Constructors
-
- /// <summary>
- /// Default constructor.
- /// </summary>
- public SsdpEmbeddedDevice()
- {
- }
-
- #endregion
-
- #region Public Properties
-
- /// <summary>
- /// Returns the <see cref="SsdpRootDevice"/> that is this device's first ancestor. If this device is itself an <see cref="SsdpRootDevice"/>, then returns a reference to itself.
- /// </summary>
- public SsdpRootDevice RootDevice
- {
- get
- {
- return _RootDevice;
- }
- internal set
- {
- _RootDevice = value;
- lock (this.Devices)
- {
- foreach (var embeddedDevice in this.Devices)
- {
- ((SsdpEmbeddedDevice)embeddedDevice).RootDevice = _RootDevice;
- }
- }
- }
- }
-
- #endregion
-
- }
-} \ No newline at end of file
+ /// <summary>
+ /// Represents a device that is a descendant of a <see cref="SsdpRootDevice"/> instance.
+ /// </summary>
+ public class SsdpEmbeddedDevice : SsdpDevice
+ {
+
+ #region Fields
+ private SsdpRootDevice _RootDevice;
+
+ #endregion
+
+ #region Constructors
+
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public SsdpEmbeddedDevice()
+ {
+ }
+
+ #endregion
+
+ #region Public Properties
+
+ /// <summary>
+ /// Returns the <see cref="SsdpRootDevice"/> that is this device's first ancestor. If this device is itself an <see cref="SsdpRootDevice"/>, then returns a reference to itself.
+ /// </summary>
+ public SsdpRootDevice RootDevice
+ {
+ get
+ {
+ return _RootDevice;
+ }
+ internal set
+ {
+ _RootDevice = value;
+ lock (this.Devices)
+ {
+ foreach (var embeddedDevice in this.Devices)
+ {
+ ((SsdpEmbeddedDevice)embeddedDevice).RootDevice = _RootDevice;
+ }
+ }
+ }
+ }
+
+ #endregion
+ }
+}