コード例 #1
0
        public void ApplyToResponse(HttpResponseMessage response, PipelineOptions pipelineOptions)
        {
            StatusAcceptability acceptable = new ExpectStatusNotInRange(400, 599);

            pipelineOptions.Use <StatusAcceptability>(option => { acceptable = option; });
            AssertResponseHasAcceptableStatus(response, acceptable);
        }
コード例 #2
0
 public void ApplyToResponse(HttpResponseMessage response, PipelineOptions pipelineOptions)
 {
     StatusAcceptability acceptable = new ExpectStatusNotInRange(400, 599);
     pipelineOptions.Use<StatusAcceptability>(option => { acceptable = option; });
     AssertResponseHasAcceptableStatus(response, acceptable);
 }