Example #1
0
 public GetCodeCommand(IPacketsProcessor packetsProcessor)
 {
     _packetsProcessor = packetsProcessor;
     _packetsProcessor.SetOnGetCodeResponse(OnGetCodeResponse);
 }
Example #2
0
 public GetCodeCommand(IPacketsProcessor packetsProcessor)
 {
     this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor));
     packetsProcessor.SetOnGetCodeResponse(OnGetCodeResponse);
 }