//----------------------------------------------------------------------------------------- // Construction //----------------------------------------------------------------------------------------- public USBMonitor(IDeviceEvents eventRaiser, ITracer tracer, IntPtr notificationHandle, bool notificationHandleIsService) { this.eventRaiser = eventRaiser; this.tracer = tracer; this.notificationHandle = notificationHandle; this.notificationHandleIsService = notificationHandleIsService; this.bugbotMessageQueue = new SharedMemTaggedBlobQueue(true, TaggedBlob.BugBotMessageQueueUniquifier); this.bugbotMessageQueue.InitializeIfNecessary(); this.bugBotCommandQueue = new SharedMemTaggedBlobQueue(true, TaggedBlob.BugBotCommandQueueUniquifier); this.bugBotCommandQueue.InitializeIfNecessary(); this.commandQueueStarter = new HandshakeThreadStarter("Command Q Listener", CommandQueueListenerThread); this.androidDeviceDatabase = new AndroidDeviceDatabase(); UpdateStatusNoRememberedConnections(); this.bugbotMessageQueue.Write(TaggedBlob.TagBugBotMessage, Resources.StartingMessage); this.deviceInterfacesOfInterest = new List<Guid>(); this.deviceNotificationHandles = new List<IntPtr>(); this.started = false; }
//----------------------------------------------------------------------------------------- // Construction //----------------------------------------------------------------------------------------- public USBMonitor(IDeviceEvents eventRaiser, ITracer tracer, IntPtr notificationHandle, bool notificationHandleIsService) { this.eventRaiser = eventRaiser; this.tracer = tracer; this.notificationHandle = notificationHandle; this.notificationHandleIsService = notificationHandleIsService; this.bugbotMessageQueue = new SharedMemTaggedBlobQueue(true, TaggedBlob.BugBotMessageQueueUniquifier); this.bugbotMessageQueue.InitializeIfNecessary(); this.bugBotCommandQueue = new SharedMemTaggedBlobQueue(true, TaggedBlob.BugBotCommandQueueUniquifier); this.bugBotCommandQueue.InitializeIfNecessary(); this.commandQueueStarter = new HandshakeThreadStarter("Command Q Listener", CommandQueueListenerThread); this.androidDeviceDatabase = new AndroidDeviceDatabase(); UpdateStatusNoRememberedConnections(); this.bugbotMessageQueue.Write(TaggedBlob.TagBugBotMessage, Resources.StartingMessage); this.deviceInterfacesOfInterest = new List <Guid>(); this.deviceNotificationHandles = new List <IntPtr>(); this.started = false; }
//----------------------------------------------------------------------------------------- // Construction //----------------------------------------------------------------------------------------- public AndroidDevice(AndroidDeviceDatabase database) { this.database = database; }