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); }
public DeviceAddedEventArgs(GlimDevice d) { Device = d; }