Пример #1
0
 public TaskGtsRequest(
     GtsCharacteristics gtsCharacteristics,
     SecurityOptions securityOptions,
     GtsConfirmHandler handler)
     : base(TaskType.GTSRequest)
 {
     this.gtsCharacteristics = gtsCharacteristics;
     this.securityOptions    = securityOptions;
     this.handler            = handler;
 }
Пример #2
0
        public void GtsRequest(
            GtsCharacteristics gtsCharacteristics,
            SecurityOptions securityOptions,
            GtsConfirmHandler handler)
        {
            TaskGtsRequest task = new TaskGtsRequest(
                gtsCharacteristics,
                securityOptions,
                handler);

            if (!_taskQueue.Add(task) && handler != null)
            {
                handler.Invoke(this, gtsCharacteristics, MacEnum.Congested);
            }
        }
Пример #3
0
 public void GtsRequest(
     GtsCharacteristics gtsCharacteristics,
     SecurityOptions securityOptions,
     GtsConfirmHandler handler)
 {
     TaskGtsRequest task = new TaskGtsRequest(
         gtsCharacteristics,
         securityOptions,
         handler);
     if (!_taskQueue.Add(task) && handler != null)
     {
         handler.Invoke(this, gtsCharacteristics, MacEnum.Congested);
     }
 }
Пример #4
0
 public TaskGtsRequest(
     GtsCharacteristics gtsCharacteristics,
     SecurityOptions securityOptions,
     GtsConfirmHandler handler)
     : base(TaskType.GTSRequest)
 {
     this.gtsCharacteristics = gtsCharacteristics;
     this.securityOptions = securityOptions;
     this.handler = handler;
 }