| | | 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 | | |
| | | 6 | | namespace CoreWCF |
| | | 7 | | { |
| | | 8 | | internal static class ServiceDefaults |
| | | 9 | | { |
| | | 10 | | //internal static TimeSpan ServiceHostCloseTimeout { get { return TimeSpanHelper.FromSeconds(10, ServiceHostClos |
| | | 11 | | //internal static TimeSpan ServiceHostCloseTimeout => TimeSpan.FromSeconds(10); |
| | | 12 | | //internal const string ServiceHostCloseTimeoutString = "00:00:10"; |
| | | 13 | | //internal static TimeSpan CloseTimeout { get { return TimeSpanHelper.FromMinutes(1, CloseTimeoutString); } } |
| | 0 | 14 | | internal static TimeSpan CloseTimeout => TimeSpan.FromMinutes(1); |
| | | 15 | | internal const string CloseTimeoutString = "00:01:00"; |
| | | 16 | | //internal static TimeSpan OpenTimeout { get { return TimeSpanHelper.FromMinutes(1, OpenTimeoutString); } } |
| | 0 | 17 | | internal static TimeSpan OpenTimeout => TimeSpan.FromMinutes(1); |
| | | 18 | | internal const string OpenTimeoutString = "00:01:00"; |
| | | 19 | | //internal static TimeSpan ReceiveTimeout { get { return TimeSpanHelper.FromMinutes(10, ReceiveTimeoutString); } |
| | 0 | 20 | | internal static TimeSpan ReceiveTimeout => TimeSpan.FromMinutes(10); |
| | | 21 | | internal const string ReceiveTimeoutString = "00:10:00"; |
| | | 22 | | //internal static TimeSpan SendTimeout { get { return TimeSpanHelper.FromMinutes(1, SendTimeoutString); } } |
| | 0 | 23 | | internal static TimeSpan SendTimeout => TimeSpan.FromMinutes(1); |
| | | 24 | | internal const string SendTimeoutString = "00:01:00"; |
| | | 25 | | //internal static TimeSpan TransactionTimeout { get { return TimeSpanHelper.FromMinutes(1, TransactionTimeoutStr |
| | | 26 | | //internal const string TransactionTimeoutString = "00:00:00"; |
| | | 27 | | } |
| | | 28 | | } |