public TaskScanRequest( ScanType scanType, UInt32 scanChannels, byte scanDuration, byte channelPage, SecurityOptions securityOptions, ScanChannelConfirmHandler handler) : base(TaskType.ScanRequest) { this.scanType = scanType; this.scanChannels = scanChannels; this.scanDuration = scanDuration; this.channelPage = channelPage; this.securityOptions = securityOptions; this.handler = handler; }
public void ScanRequest( ScanType scanType, UInt32 scanChannels, byte scanDuration, byte channelPage, SecurityOptions securityOptions, ScanChannelConfirmHandler handler) { TaskScanRequest task = new TaskScanRequest( scanType, scanChannels, scanDuration, channelPage, securityOptions, handler); if (!_taskQueue.Add(task) && handler != null) { handler.Invoke(this, MacEnum.Congested, scanType, channelPage, scanChannels, null, null); } }