Exemplo n.º 1
0
 public TaskGetRequest(
     PibAttribute attribute,
     int attributeIndex,
     GetConfirmHandler handler)
     : base(TaskType.GetRequest)
 {
     this.attribute      = attribute;
     this.attributeIndex = attributeIndex;
     this.handler        = handler;
 }
Exemplo n.º 2
0
        public void GetRequest(
            PibAttribute attribute,
            int attributeIndex,
            GetConfirmHandler handler)
        {
            TaskGetRequest task = new TaskGetRequest(
                attribute,
                attributeIndex,
                handler);

            if (!_taskQueue.Add(task) && handler != null)
            {
                handler.Invoke(this, MacEnum.Congested, attribute, attributeIndex, new PibValue());
            }
        }
Exemplo n.º 3
0
 public void GetRequest(
     PibAttribute attribute,
     int attributeIndex,
     GetConfirmHandler handler)
 {
     TaskGetRequest task = new TaskGetRequest(
         attribute,
         attributeIndex,
         handler);
     if (!_taskQueue.Add(task) && handler != null)
     {
         handler.Invoke(this, MacEnum.Congested, attribute, attributeIndex, new PibValue());
     }
 }
Exemplo n.º 4
0
 public TaskGetRequest(
     PibAttribute attribute,
     int attributeIndex,
     GetConfirmHandler handler)
     : base(TaskType.GetRequest)
 {
     this.attribute = attribute;
     this.attributeIndex = attributeIndex;
     this.handler = handler;
 }