예제 #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);
        }
예제 #2
0
 public DeviceAddedEventArgs(GlimDevice d)
 {
     Device = d;
 }