public GetProfileNameCommand(IPacketsProcessor packetsProcessor) { _packetsProcessor = packetsProcessor; _packetsProcessor.SetOnGetProfileNameResponse(OnGetProfileNameResponse); }
public GetProfileNameCommand(IPacketsProcessor packetsProcessor) { this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor)); packetsProcessor.SetOnGetProfileNameResponse(OnGetProfileNameResponse); }