using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace AMWD.Protocols.Modbus.Common.Utils { internal class RequestQueueItem { public byte[] Request { get; set; } public Func, bool> ValidateResponseComplete { get; set; } public TaskCompletionSource> TaskCompletionSource { get; set; } public CancellationTokenSource CancellationTokenSource { get; set; } public CancellationTokenRegistration CancellationTokenRegistration { get; set; } } }