Parcourir la source

Moved both parts of Extensions partial class to Common namespace.

Gert Driesen il y a 9 ans
Parent
commit
d11eeb4185

+ 5 - 5
src/Renci.SshNet.NET35/Common/Extensions.NET35.cs

@@ -1,16 +1,16 @@
 using System;
-using System.Text;
+using System.Diagnostics;
 using System.Net.Sockets;
-using System.Threading;
 using System.Security.Cryptography;
-using System.Diagnostics;
+using System.Text;
+using System.Threading;
 
-namespace Renci.SshNet
+namespace Renci.SshNet.Common
 {
     /// <summary>
     /// Collection of different extension method specific for .NET 3.5
     /// </summary>
-    public static partial class Extensions
+    internal static partial class Extensions
     {
         /// <summary>
         /// Disposes the specified socket.

+ 1 - 0
src/Renci.SshNet.Tests/Classes/Channels/ChannelDirectTcpipTest_Close_SessionIsConnectedAndChannelIsOpen.cs

@@ -6,6 +6,7 @@ using System.Threading;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Moq;
 using Renci.SshNet.Channels;
+using Renci.SshNet.Common;
 using Renci.SshNet.Messages.Connection;
 using Renci.SshNet.Tests.Common;
 

+ 1 - 0
src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs

@@ -2,6 +2,7 @@
 using System.Net;
 using System.Net.Sockets;
 using System.Threading;
+using Renci.SshNet.Common;
 
 namespace Renci.SshNet.Tests.Common
 {

+ 1 - 0
src/Renci.SshNet/ForwardedPortDynamic.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Threading;
+using Renci.SshNet.Common;
 
 namespace Renci.SshNet
 {

+ 1 - 0
src/Renci.SshNet/NoneAuthenticationMethod.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Threading;
+using Renci.SshNet.Common;
 using Renci.SshNet.Messages.Authentication;
 using Renci.SshNet.Messages;