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;
 }
示例#2
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);
            }
        }
示例#3
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);
     }
 }
示例#4
0
 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;
 }