Skip to content

Commit 09365c2

Browse files
committed
Remove FEATURE_BINARY_SERIALIZATION
1 parent 1a1222c commit 09365c2

13 files changed

+0
-68
lines changed

src/Renci.SshNet/Common/NetConfServerException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when there is something wrong with the server capabilities.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class NetConfServerException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public NetConfServerException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="NetConfServerException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected NetConfServerException(SerializationInfo info, StreamingContext contex
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/ProxyException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when a proxy connection cannot be established.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class ProxyException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public ProxyException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="ProxyException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected ProxyException(SerializationInfo info, StreamingContext context)
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/ScpException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when SCP error occurred.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class ScpException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public ScpException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="ScpException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected ScpException(SerializationInfo info, StreamingContext context)
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/SftpPathNotFoundException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when file or directory is not found.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class SftpPathNotFoundException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public SftpPathNotFoundException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="SftpPathNotFoundException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected SftpPathNotFoundException(SerializationInfo info, StreamingContext con
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/SftpPermissionDeniedException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when operation permission is denied.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class SftpPermissionDeniedException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public SftpPermissionDeniedException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="SftpPermissionDeniedException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected SftpPermissionDeniedException(SerializationInfo info, StreamingContext
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/SshAuthenticationException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when authentication failed.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class SshAuthenticationException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public SshAuthenticationException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="SshAuthenticationException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected SshAuthenticationException(SerializationInfo info, StreamingContext co
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/SshConnectionException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53
using Renci.SshNet.Messages.Transport;
64

75
namespace Renci.SshNet.Common
86
{
97
/// <summary>
108
/// The exception that is thrown when connection was terminated.
119
/// </summary>
12-
#if FEATURE_BINARY_SERIALIZATION
1310
[Serializable]
14-
#endif // FEATURE_BINARY_SERIALIZATION
1511
public class SshConnectionException : SshException
1612
{
1713
/// <summary>
@@ -70,7 +66,6 @@ public SshConnectionException(string message, DisconnectReason disconnectReasonC
7066
DisconnectReason = disconnectReasonCode;
7167
}
7268

73-
#if FEATURE_BINARY_SERIALIZATION
7469
/// <summary>
7570
/// Initializes a new instance of the <see cref="SshConnectionException"/> class.
7671
/// </summary>
@@ -82,6 +77,5 @@ protected SshConnectionException(SerializationInfo info, StreamingContext contex
8277
: base(info, context)
8378
{
8479
}
85-
#endif // FEATURE_BINARY_SERIALIZATION
8680
}
8781
}

src/Renci.SshNet/Common/SshException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when SSH exception occurs.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class SshException : Exception
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public SshException(string message, Exception inner)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="SshException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected SshException(SerializationInfo info, StreamingContext context)
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/SshOperationTimeoutException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when operation is timed out.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class SshOperationTimeoutException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public SshOperationTimeoutException(string message, Exception innerException)
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="SshOperationTimeoutException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected SshOperationTimeoutException(SerializationInfo info, StreamingContext
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

src/Renci.SshNet/Common/SshPassPhraseNullOrEmptyException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
using System;
2-
#if FEATURE_BINARY_SERIALIZATION
32
using System.Runtime.Serialization;
4-
#endif // FEATURE_BINARY_SERIALIZATION
53

64
namespace Renci.SshNet.Common
75
{
86
/// <summary>
97
/// The exception that is thrown when pass phrase for key file is empty or <see langword="null"/>.
108
/// </summary>
11-
#if FEATURE_BINARY_SERIALIZATION
129
[Serializable]
13-
#endif // FEATURE_BINARY_SERIALIZATION
1410
public class SshPassPhraseNullOrEmptyException : SshException
1511
{
1612
/// <summary>
@@ -39,7 +35,6 @@ public SshPassPhraseNullOrEmptyException(string message, Exception innerExceptio
3935
{
4036
}
4137

42-
#if FEATURE_BINARY_SERIALIZATION
4338
/// <summary>
4439
/// Initializes a new instance of the <see cref="SshPassPhraseNullOrEmptyException"/> class.
4540
/// </summary>
@@ -51,6 +46,5 @@ protected SshPassPhraseNullOrEmptyException(SerializationInfo info, StreamingCon
5146
: base(info, context)
5247
{
5348
}
54-
#endif // FEATURE_BINARY_SERIALIZATION
5549
}
5650
}

0 commit comments

Comments
 (0)