| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Net; |
| | | 6 | | |
| | | 7 | | namespace CoreWCF.Channels |
| | | 8 | | { |
| | | 9 | | internal class HttpTransportSettings : IHttpTransportFactorySettings |
| | | 10 | | { |
| | 1095 | 11 | | public TimeSpan CloseTimeout { get; set; } |
| | 445 | 12 | | public TimeSpan OpenTimeout { get; set; } |
| | 434 | 13 | | public TimeSpan ReceiveTimeout { get; set; } |
| | 1084 | 14 | | public TimeSpan SendTimeout { get; set; } |
| | 1084 | 15 | | public bool ManualAddressing { get; set; } |
| | 1734 | 16 | | public BufferManager BufferManager { get; set; } |
| | 1693 | 17 | | public long MaxReceivedMessageSize { get; set; } |
| | 2406 | 18 | | public MessageEncoderFactory MessageEncoderFactory { get; set; } |
| | 22 | 19 | | public MessageVersion MessageVersion => MessageEncoderFactory.MessageVersion; |
| | 453 | 20 | | public int MaxBufferSize { get; set; } |
| | 1734 | 21 | | public TransferMode TransferMode { get; set; } |
| | 1073 | 22 | | public bool KeepAliveEnabled { get; set; } |
| | 423 | 23 | | public IAnonymousUriPrefixMatcher AnonymousUriPrefixMatcher { get; set; } |
| | 445 | 24 | | public WebSocketTransportSettings WebSocketSettings { get; set; } |
| | 2946 | 25 | | public AuthenticationSchemes AuthenticationScheme { get; set; } |
| | 2421 | 26 | | public bool IsAuthenticationRequired => AuthenticationScheme.IsNotSet(AuthenticationSchemes.Anonymous); |
| | 11 | 27 | | public bool IsAuthenticationSupported => AuthenticationScheme != AuthenticationSchemes.Anonymous; |
| | | 28 | | } |
| | | 29 | | } |