示例#1
0
        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);
            }
        }
示例#2
0
文件: Mac.cs 项目: prabby/miniclr
 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);
     }
 }