Class DefaultTimeoutPolicy
The default timeout policy
Inherited Members
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public class DefaultTimeoutPolicy : ITimeoutPolicy
Constructors
| Improve this Doc View SourceDefaultTimeoutPolicy(IOptions<DefaultTimeoutPolicyOptions>)
Initializes a new instance of the DefaultTimeoutPolicy class.
Declaration
public DefaultTimeoutPolicy(IOptions<DefaultTimeoutPolicyOptions> options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<DefaultTimeoutPolicyOptions> | options | The options to configure this ITimeoutPolicy implementation. |
Methods
| Improve this Doc View SourceSelectTimeout(IReadOnlyCollection<TimeSpan>)
Selects the timeout from the list of client requested timeouts.
Declaration
public TimeSpan SelectTimeout(IReadOnlyCollection<TimeSpan> timeouts)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<TimeSpan> | timeouts | The timeouts requested by the client |
Returns
Type | Description |
---|---|
TimeSpan | The timeout to use |