Exemplo n.º 1
0
        public void ReleaseJobAsync()
        {
            var request = new ReleaseJobRequest {
                PrinterUri = PrinterUrl, JobId = JobId
            };
            var result = _protocol.Construct(request);

            CheckResult(result);
        }
Exemplo n.º 2
0
 public async Task ReleaseJobAsync()
 {
     await TestJobRequestAsync(async jobId =>
     {
         var request = new ReleaseJobRequest {
             PrinterUri = Options.Value.PrinterUrl, JobId = jobId
         };
         return(await TestRequestAsync(request, (client, r) => client.ReleaseJobAsync(r)));
     });
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Release-Job Operation
 ///     https://tools.ietf.org/html/rfc2911#section-3.3.6
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public async Task <ReleaseJobResponse> ReleaseJobAsync(ReleaseJobRequest request)
 {
     return(await SendAsync(request.PrinterUri, () => _ippProtocol.Construct(request),
                            ippResponse => _ippProtocol.ConstructReleaseJobResponse(ippResponse)));
 }
Exemplo n.º 4
0
 public IppRequestMessage Construct(ReleaseJobRequest request) => ConstructIppRequest(request);