public async Task GetPrinterAttributesAsync_Simple() { var request = new GetPrinterAttributesRequest { PrinterUri = Options.Value.PrinterUrl }; await TestRequestAsync(request, (client, r) => client.GetPrinterAttributesAsync(r)); }
public async Task GetPrinterAttributesAsync_Full() { var request = new GetPrinterAttributesRequest { PrinterUri = Options.Value.PrinterUrl, RequestedAttributes = new[] { PrinterAttribute.PagesPerMinute } }; await TestRequestAsync(request, (client, r) => client.GetPrinterAttributesAsync(r)); }
public void GetPrinterAttributesAsync_Simple() { var request = new GetPrinterAttributesRequest { PrinterUri = PrinterUrl }; var result = _protocol.Construct(request); CheckResult(result); }
public void GetPrinterAttributesAsync_Full() { var request = new GetPrinterAttributesRequest { PrinterUri = PrinterUrl, RequestedAttributes = new[] { PrinterAttribute.PagesPerMinute } }; var result = _protocol.Construct(request); CheckResult(result); }
/// <summary> /// Get-Printer-Attributes Operation /// https://tools.ietf.org/html/rfc2911#section-3.2.5 /// </summary> /// <param name="request"></param> /// <returns></returns> public async Task <GetPrinterAttributesResponse> GetPrinterAttributesAsync(GetPrinterAttributesRequest request) { return(await SendAsync(request.PrinterUri, () => _ippProtocol.Construct(request), ippResponse => _ippProtocol.ConstructGetPrinterAttributesResponse(ippResponse))); }
/// <summary> /// Get-Printer-Attributes Request /// https://tools.ietf.org/html/rfc2911#section-3.2.5.1 /// </summary> /// <param name="request"></param> public IppRequestMessage Construct(GetPrinterAttributesRequest request) => ConstructIppRequest(request);