public GetU80mADCCommand(IPacketsProcessor packetsProcessor) { _packetsProcessor = packetsProcessor; _packetsProcessor.SetOnGetU80mADCResponse(OnGetU80mADCResponse); }
public GetU80mADCCommand(IPacketsProcessor packetsProcessor) { this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor)); packetsProcessor.SetOnGetU80mADCResponse(OnGetU80mADCResponse); }