8 files changed +25
-16
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "core" : {
3
+ "changeLogMessages" : [
4
+ " Remove the obsolete ReadWriteTimeout property from ClientConfig all targets except .NET Framework 4.7.2."
5
+ ],
6
+ "type" : " patch" ,
7
+ "updateMinimum" : true
8
+ }
9
+ }
Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ public abstract partial class ClientConfig : IClientConfig
82
82
private bool ? useFIPSEndpoint ;
83
83
private bool ? disableRequestCompression ;
84
84
private long ? requestMinCompressionSizeBytes ;
85
- private TimeSpan ? readWriteTimeout = null ;
86
85
private bool disableHostPrefixInjection = false ;
87
86
private bool ? endpointDiscoveryEnabled = null ;
88
87
private bool ? ignoreConfiguredEndpointUrls ;
@@ -1133,6 +1132,9 @@ public int HttpClientCacheSize
1133
1132
}
1134
1133
#endif
1135
1134
1135
+ #if NETFRAMEWORK
1136
+ private TimeSpan ? readWriteTimeout = null ;
1137
+
1136
1138
/// <summary>
1137
1139
/// Overrides the default read-write timeout value.
1138
1140
/// </summary>
@@ -1145,9 +1147,6 @@ public int HttpClientCacheSize
1145
1147
/// <exception cref="System.ArgumentOutOfRangeException">The timeout specified is less than or equal to zero and is not Infinite.</exception>
1146
1148
/// </remarks>
1147
1149
/// <seealso cref="P:System.Net.HttpWebRequest.ReadWriteTimeout"/>
1148
- #if NETSTANDARD
1149
- [ Obsolete ( "ReadWriteTimeout is not consumed in asynchronous HTTP requests. Please use a cancellation token to handle stream read/write timeouts." ) ]
1150
- #endif
1151
1150
public TimeSpan ? ReadWriteTimeout
1152
1151
{
1153
1152
get { return this . readWriteTimeout ; }
@@ -1157,6 +1156,7 @@ public TimeSpan? ReadWriteTimeout
1157
1156
this . readWriteTimeout = value ;
1158
1157
}
1159
1158
}
1159
+ #endif
1160
1160
1161
1161
/// <summary>
1162
1162
/// Gets and sets of the EndpointProvider property.
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ protected override void Initialize()
34
34
// Set Timeout and ReadWriteTimeout for Glacier client to max timeout as per-request
35
35
// timeouts are not supported.
36
36
this . Timeout = ClientConfig . MaxTimeout ;
37
- #pragma warning disable CS0612 , CS0618
37
+ #if NETFRAMEWORK
38
38
this . ReadWriteTimeout = ClientConfig . MaxTimeout ;
39
- #pragma warning restore CS0612 , CS0618
39
+ #endif
40
40
#endif
41
41
base . Initialize ( ) ;
42
42
}
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ protected override void Initialize()
36
36
// Set Timeout and ReadWriteTimeout for Amazon IoTJobsDataPlane service to max timeout as per-request
37
37
// timeouts are not supported.
38
38
this . Timeout = ClientConfig . MaxTimeout ;
39
- #pragma warning disable CS0612 , CS0618
39
+ #if NETFRAMEWORK
40
40
this . ReadWriteTimeout = ClientConfig . MaxTimeout ;
41
- #pragma warning restore CS0612 , CS0618
41
+ #endif
42
42
#endif
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ protected override void Initialize()
36
36
// Set Timeout and ReadWriteTimeout for Amazon KinesisVideoArchivedMedia service to max timeout as per-request
37
37
// timeouts are not supported.
38
38
this . Timeout = ClientConfig . MaxTimeout ;
39
- #pragma warning disable CS0612 , CS0618
39
+ #if NETFRAMEWORK
40
40
this . ReadWriteTimeout = ClientConfig . MaxTimeout ;
41
- #pragma warning restore CS0612 , CS0618
41
+ #endif
42
42
#endif
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ protected override void Initialize()
36
36
// Set Timeout and ReadWriteTimeout for Amazon KinesisVideoMedia service to max timeout as per-request
37
37
// timeouts are not supported.
38
38
this . Timeout = ClientConfig . MaxTimeout ;
39
- #pragma warning disable CS0612 , CS0618
39
+ #if NETFRAMEWORK
40
40
this . ReadWriteTimeout = ClientConfig . MaxTimeout ;
41
- #pragma warning restore CS0612 , CS0618
41
+ #endif
42
42
#endif
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ protected override void Initialize()
36
36
// Set Timeout and ReadWriteTimeout for Amazon MediaStoreData service to max timeout as per-request
37
37
// timeouts are not supported.
38
38
this . Timeout = ClientConfig . MaxTimeout ;
39
- #pragma warning disable CS0612 , CS0618
39
+ #if NETFRAMEWORK
40
40
this . ReadWriteTimeout = ClientConfig . MaxTimeout ;
41
- #pragma warning restore CS0612 , CS0618
41
+ #endif
42
42
#endif
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -265,9 +265,9 @@ protected override void Initialize()
265
265
// Set Timeout and ReadWriteTimeout for S3 to max timeout as per-request
266
266
// timeouts are not supported.
267
267
this . Timeout = ClientConfig . MaxTimeout ;
268
- #pragma warning disable CS0612 , CS0618
268
+ #if NETFRAMEWORK
269
269
this . ReadWriteTimeout = ClientConfig . MaxTimeout ;
270
- #pragma warning restore CS0612 , CS0618
270
+ #endif
271
271
#endif
272
272
}
273
273
0 commit comments