public TaskGetRequest( PibAttribute attribute, int attributeIndex, GetConfirmHandler handler) : base(TaskType.GetRequest) { this.attribute = attribute; this.attributeIndex = attributeIndex; this.handler = handler; }
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()); } }