public GetLastFailureCodeCommand(IPacketsProcessor packetsProcessor) { this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor)); packetsProcessor.SetOnGetLastFailureCodeResponse(OnGetLastFailureCodeResponse); }
public GetLastErrorCodeCommand(IPacketsProcessor packetsProcessor) { _packetsProcessor = packetsProcessor; _packetsProcessor.SetOnGetLastFailureCodeResponse(OnGetLastErrorCodeResponse); }