@@ -28,7 +28,9 @@ public class ConnectionSettings
28
28
{
29
29
// fields
30
30
private readonly string _applicationName ;
31
+ #pragma warning disable CS0618 // Type or member is obsolete
31
32
private readonly IReadOnlyList < IAuthenticatorFactory > _authenticatorFactories ;
33
+ #pragma warning restore CS0618 // Type or member is obsolete
32
34
private readonly IReadOnlyList < CompressorConfiguration > _compressors ;
33
35
private readonly LibraryInfo _libraryInfo ;
34
36
private readonly bool _loadBalanced ;
@@ -47,15 +49,19 @@ public class ConnectionSettings
47
49
/// <param name="maxLifeTime">The maximum life time.</param>
48
50
/// <param name="applicationName">The application name.</param>
49
51
public ConnectionSettings (
52
+ #pragma warning disable CS0618 // Type or member is obsolete
50
53
Optional < IEnumerable < IAuthenticatorFactory > > authenticatorFactories = default ,
54
+ #pragma warning restore CS0618 // Type or member is obsolete
51
55
Optional < IEnumerable < CompressorConfiguration > > compressors = default ( Optional < IEnumerable < CompressorConfiguration > > ) ,
52
56
Optional < LibraryInfo > libraryInfo = default ,
53
57
Optional < bool > loadBalanced = default ,
54
58
Optional < TimeSpan > maxIdleTime = default ( Optional < TimeSpan > ) ,
55
59
Optional < TimeSpan > maxLifeTime = default ( Optional < TimeSpan > ) ,
56
60
Optional < string > applicationName = default ( Optional < string > ) )
57
61
{
62
+ #pragma warning disable CS0618 // Type or member is obsolete
58
63
_authenticatorFactories = Ensure . IsNotNull ( authenticatorFactories . WithDefault ( Enumerable . Empty < IAuthenticatorFactory > ( ) ) , nameof ( authenticatorFactories ) ) . ToList ( ) . AsReadOnly ( ) ;
64
+ #pragma warning restore CS0618 // Type or member is obsolete
59
65
_compressors = Ensure . IsNotNull ( compressors . WithDefault ( Enumerable . Empty < CompressorConfiguration > ( ) ) , nameof ( compressors ) ) . ToList ( ) ;
60
66
_libraryInfo = libraryInfo . WithDefault ( null ) ;
61
67
_loadBalanced = loadBalanced . WithDefault ( false ) ;
@@ -82,7 +88,9 @@ public string ApplicationName
82
88
/// <value>
83
89
/// The authenticator factories.
84
90
/// </value>
91
+ #pragma warning disable CS0618 // Type or member is obsolete
85
92
public IReadOnlyList < IAuthenticatorFactory > AuthenticatorFactories
93
+ #pragma warning restore CS0618 // Type or member is obsolete
86
94
{
87
95
get { return _authenticatorFactories ; }
88
96
}
@@ -149,7 +157,9 @@ public TimeSpan MaxLifeTime
149
157
/// <param name="applicationName">The application name.</param>
150
158
/// <returns>A new ConnectionSettings instance.</returns>
151
159
public ConnectionSettings With (
160
+ #pragma warning disable CS0618 // Type or member is obsolete
152
161
Optional < IEnumerable < IAuthenticatorFactory > > authenticatorFactories = default ,
162
+ #pragma warning restore CS0618 // Type or member is obsolete
153
163
Optional < IEnumerable < CompressorConfiguration > > compressors = default ( Optional < IEnumerable < CompressorConfiguration > > ) ,
154
164
Optional < LibraryInfo > libraryInfo = default ,
155
165
Optional < bool > loadBalanced = default ,
0 commit comments