public GetFrequencyCommand(IPacketsProcessor packetsProcessor) { _packetsProcessor = packetsProcessor; _packetsProcessor.SetOnGetFrequencyResponse(OnGetFrequencyResponse); }
public GetFrequencyCommand(IPacketsProcessor packetsProcessor) { this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor)); packetsProcessor.SetOnGetFrequencyResponse(OnGetFrequencyResponse); }