Пример #1
0
        public UpnpServer(UpnpRoot root, ISsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;

            this.SsdpServer = ssdp ?? new SsdpServer();
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }
Пример #2
0
        public UpnpServer(UpnpRoot root, ISsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;

            this.SsdpServer = ssdp ?? new SsdpServer();
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }
Пример #3
0
        public UpnpServer(UpnpRoot root, ISsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;

            var sockets = SsdpSocketFactory.BuildSockets().ToArray();

            this.SsdpServer = ssdp ?? new SsdpServer(sockets);
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }
Пример #4
0
        public UpnpServer(UpnpRoot root, ISsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;

            var sockets = SsdpSocketFactory.BuildSockets().ToArray();

            this.SsdpServer = ssdp ?? new SsdpServer(sockets);
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }