예제 #1
0
 public GetFrequencyCommand(IPacketsProcessor packetsProcessor)
 {
     _packetsProcessor = packetsProcessor;
     _packetsProcessor.SetOnGetFrequencyResponse(OnGetFrequencyResponse);
 }
예제 #2
0
 public GetFrequencyCommand(IPacketsProcessor packetsProcessor)
 {
     this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor));
     packetsProcessor.SetOnGetFrequencyResponse(OnGetFrequencyResponse);
 }