forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpMessageHandlerOptions.cs
More file actions
37 lines (31 loc) · 1.53 KB
/
HttpMessageHandlerOptions.cs
File metadata and controls
37 lines (31 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http;
using System.Threading;
using System.Web.Http.ExceptionHandling;
using System.Web.Http.Hosting;
namespace System.Web.Http.Owin
{
/// <summary>Represents the options for configuring an <see cref="HttpMessageHandlerAdapter"/>.</summary>
public class HttpMessageHandlerOptions
{
/// <summary>
/// Gets or sets the <see cref="HttpMessageHandler"/> to submit requests to.
/// </summary>
public HttpMessageHandler MessageHandler { get; set; }
/// <summary>
/// Gets or sets the <see cref="IHostBufferPolicySelector"/> that determines whether or not to buffer requests
/// and responses.
/// </summary>
public IHostBufferPolicySelector BufferPolicySelector { get; set; }
/// <summary>Gets or sets the <see cref="IExceptionLogger"/> to use to log unhandled exceptions.</summary>
public IExceptionLogger ExceptionLogger { get; set; }
/// <summary>Gets or sets the <see cref="IExceptionHandler"/> to use to process unhandled exceptions.</summary>
public IExceptionHandler ExceptionHandler { get; set; }
/// <summary>
/// Gets or sets the <see cref="CancellationToken"/> that triggers cleanup of the
/// <see cref="HttpMessageHandlerAdapter"/>.
/// </summary>
public CancellationToken AppDisposing { get; set; }
}
}