public GoogleCast(ILogger <GoogleCast> logger, IConfig config) : base(logger, config) { this.Logger = logger; dnsBroker = mDNS.getInstance(logger, config); dnsBroker.registerDomain(domain, googlecastDeviceFound); }
public Arecont(ILogger <Arecont> logger, IConfig config) : base(logger, config) { this.Logger = logger; dnsBroker = mDNS.getInstance(logger, config); dnsBroker.registerDomain(domain, mdnsReplyReciever); }
public Axis() { dnsBroker = mDNS.getInstance(); foreach (var d in domains) { dnsBroker.registerDomain(d, axisDeviceFound); } }
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); } }
public static mDNS getInstance() { lock (locker) // avoid class instance to run in two threads same time { if (globalInstance == null) { globalInstance = new mDNS(); } } return(globalInstance); }
// 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); }
public GoogleCast() { dnsBroker = mDNS.getInstance(); dnsBroker.registerDomain(domain, googlecastDeviceFound); }
public Arecont() { dnsBroker = mDNS.getInstance(); dnsBroker.registerDomain(domain, mdnsReplyReciever); }