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; }
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); } }