예제 #1
0
        public GoogleCast(ILogger <GoogleCast> logger, IConfig config) : base(logger, config)
        {
            this.Logger = logger;
            dnsBroker   = mDNS.getInstance(logger, config);

            dnsBroker.registerDomain(domain, googlecastDeviceFound);
        }
예제 #2
0
        public Arecont(ILogger <Arecont> logger, IConfig config) : base(logger, config)
        {
            this.Logger = logger;
            dnsBroker   = mDNS.getInstance(logger, config);

            dnsBroker.registerDomain(domain, mdnsReplyReciever);
        }
예제 #3
0
        public Axis()
        {
            dnsBroker = mDNS.getInstance();

            foreach (var d in domains)
            {
                dnsBroker.registerDomain(d, axisDeviceFound);
            }
        }
예제 #4
0
        public Axis(ILogger <Axis> logger, IConfig config) : base(logger, config)
        {
            this.Logger = logger;
            dnsBroker   = mDNS.getInstance(logger, config);

            foreach (var d in domains)
            {
                dnsBroker.registerDomain(d, axisDeviceFound);
            }
        }
예제 #5
0
        public static mDNS getInstance()
        {
            lock (locker) // avoid class instance to run in two threads same time
            {
                if (globalInstance == null)
                {
                    globalInstance = new mDNS();
                }
            }

            return(globalInstance);
        }
예제 #6
0
        // TODO remove to DI when built
        public static mDNS getInstance(ILogger logger, IConfig config)
        {
            lock (locker) // avoid class instance to run in two threads same time
            {
                if (globalInstance == null)
                {
                    globalInstance = new mDNS(logger, config);
                }
            }

            return(globalInstance);
        }
예제 #7
0
        public GoogleCast()
        {
            dnsBroker = mDNS.getInstance();

            dnsBroker.registerDomain(domain, googlecastDeviceFound);
        }
예제 #8
0
        public Arecont()
        {
            dnsBroker = mDNS.getInstance();

            dnsBroker.registerDomain(domain, mdnsReplyReciever);
        }