Exemplo n.º 1
0
        /// <summary>
        /// Derived type constructor, allows constructing a device with no parent. Should only be used from derived types that are or inherit from <see cref="SsdpRootDevice"/>.
        /// </summary>
        protected SsdpDevice()
        {
            _DeviceTypeNamespace = SsdpConstants.UpnpDeviceTypeNamespace;
            _DeviceType          = SsdpConstants.UpnpDeviceTypeBasicDevice;
            _DeviceVersion       = 1;

            this.Icons   = new List <SsdpDeviceIcon>();
            _Devices     = new List <SsdpDevice>();
            this.Devices = new ReadOnlyEnumerable <SsdpDevice>(_Devices);
            this.additionalSearchResponseProperties = new SsdpDevicePropertiesCollection();
            _CustomProperties = new SsdpDevicePropertiesCollection();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Derived type constructor, allows constructing a device with no parent. Should only be used from derived types that are or inherit from <see cref="SsdpRootDevice"/>.
        /// </summary>
        protected SsdpDevice()
        {
            _DeviceTypeNamespace = SsdpConstants.UpnpDeviceTypeNamespace;
            _DeviceType          = SsdpConstants.UpnpDeviceTypeBasicDevice;
            _DeviceVersion       = 1;

            this.Icons             = new List <SsdpDeviceIcon>();
            _Devices               = new List <SsdpDevice>();
            this.Devices           = new ReadOnlyCollection <SsdpDevice>(_Devices);
            _CustomResponseHeaders = new CustomHttpHeadersCollection();
            _CustomProperties      = new SsdpDevicePropertiesCollection();
        }