public void GetJobAttributesAsync() { var request = new GetJobAttributesRequest { PrinterUri = PrinterUrl, JobId = JobId }; var result = _protocol.Construct(request); CheckResult(result); }
public async Task GetJobAttributesAsync() { await TestJobRequestAsync(async jobId => { var request = new GetJobAttributesRequest { PrinterUri = Options.Value.PrinterUrl, JobId = jobId }; return(await TestRequestAsync(request, (client, r) => client.GetJobAttributesAsync(r))); }); }
/// <summary> /// Get-Job-Attributes Operation /// https://tools.ietf.org/html/rfc2911#section-3.3.4 /// </summary> /// <param name="request"></param> /// <returns></returns> public async Task <GetJobAttributesResponse> GetJobAttributesAsync(GetJobAttributesRequest request) { return(await SendAsync(request.PrinterUri, () => _ippProtocol.Construct(request), ippResponse => _ippProtocol.ConstructGetJobAttributesResponse(ippResponse))); }
/// <summary> /// Get-Job-Attributes Request /// https://tools.ietf.org/html/rfc2911#section-3.3.4.1 /// </summary> /// <param name="request"></param> public IppRequestMessage Construct(GetJobAttributesRequest request) => ConstructIppRequest(request);