コード例 #1
0
 public TaskSetRequest(
     PibAttribute attribute,
     int index,
     PibValue value,
     SetConfirmHandler handler)
     : base(TaskType.SetRequest)
 {
     this.attribute = attribute;
     this.index     = index;
     this.value     = value;
     this.handler   = handler;
 }
コード例 #2
0
        public void SetRequest(
            PibAttribute attribute,
            int index,
            PibValue value,
            SetConfirmHandler handler)
        {
            TaskSetRequest task = new TaskSetRequest(
                attribute,
                index,
                value,
                handler);

            if (!_taskQueue.Add(task) && handler != null)
            {
                handler.Invoke(this, MacEnum.Congested, attribute, index);
            }
        }
コード例 #3
0
ファイル: Mac.cs プロジェクト: prabby/miniclr
 public void SetRequest(
     PibAttribute attribute,
     int index,
     PibValue value,
     SetConfirmHandler handler)
 {
     TaskSetRequest task = new TaskSetRequest(
         attribute,
         index,
         value,
         handler);
     if (!_taskQueue.Add(task) && handler != null)
     {
         handler.Invoke(this, MacEnum.Congested, attribute, index);
     }
 }
コード例 #4
0
ファイル: TaskTypes.cs プロジェクト: koson/.NETMF_for_LPC17xx
 public TaskSetRequest(
     PibAttribute attribute,
     int index,
     PibValue value,
     SetConfirmHandler handler)
     : base(TaskType.SetRequest)
 {
     this.attribute = attribute;
     this.index = index;
     this.value = value;
     this.handler = handler;
 }