Ejemplo n.º 1
0
        public GlimDevice FindOrCreate(string hostname)
        {
            var g = Find(hostname);

            if (null == g)
            {
                g = new GlimDevice(hostname);
                lock ( mList ) {
                    mList.Add(g.HostName, g);
                }
                DeviceAdded?.Invoke(this, new DeviceAddedEventArgs(g));
            }
            return(g);
        }
Ejemplo n.º 2
0
 public DeviceAddedEventArgs(GlimDevice d)
 {
     Device = d;
 }