Skip to content

Commit 75fba42

Browse files
authored
Merge pull request #1654 from Badgerati/use-net-namespaces
Migrate .NET listener to use folders/namespaces, to better manage the code
2 parents 5524933 + 8c6bba2 commit 75fba42

File tree

81 files changed

+264
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+264
-155
lines changed

src/Listener/PodeClientConnection.cs renamed to src/Listener/ClientConnections/PodeClientConnection.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
using System.Linq;
44
using System.Threading;
55
using System.Threading.Tasks;
6+
using Pode.Sockets;
7+
using Pode.Utilities;
68

7-
namespace Pode
9+
namespace Pode.ClientConnections
810
{
911
public class PodeClientConnection : IDisposable
1012
{

src/Listener/PodeClientConnectionEnvelope.cs renamed to src/Listener/ClientConnections/PodeClientConnectionEnvelope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Pode
1+
namespace Pode.ClientConnections
22
{
33
public class PodeClientConnectionEnvelope
44
{

src/Listener/PodeClientConnectionEvent.cs renamed to src/Listener/ClientConnections/PodeClientConnectionEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections;
33

4-
namespace Pode
4+
namespace Pode.ClientConnections
55
{
66
public class PodeClientConnectionEvent : IDisposable
77
{

src/Listener/PodeClientConnectionEventType.cs renamed to src/Listener/ClientConnections/PodeClientConnectionEventType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Pode
1+
namespace Pode.ClientConnections
22
{
33
public enum PodeClientConnectionEventType
44
{

src/Listener/PodeClientConnectionNestedMap.cs renamed to src/Listener/ClientConnections/PodeClientConnectionNestedMap.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
using System.Threading;
44
using System.Threading.Tasks;
55
using System.IO;
6+
using Pode.Connectors;
7+
using Pode.Utilities;
68

7-
namespace Pode
9+
namespace Pode.ClientConnections
810
{
911
public class PodeClientConnectionNestedMap<T> : PodeItemNestedMap<T> where T : PodeClientConnection
1012
{

src/Listener/PodeClientConnectionScope.cs renamed to src/Listener/ClientConnections/PodeClientConnectionScope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Pode
1+
namespace Pode.ClientConnections
22
{
33
public enum PodeClientConnectionScope
44
{

src/Listener/PodeClientConnectionType.cs renamed to src/Listener/ClientConnections/PodeClientConnectionType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Pode
1+
namespace Pode.ClientConnections
22
{
33
public enum PodeClientConnectionType
44
{

src/Listener/PodeServerEvent.cs renamed to src/Listener/ClientConnections/SSE/PodeServerEvent.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
using System.Collections;
33
using System.IO;
44
using System.Threading.Tasks;
5+
using Pode.Sockets;
6+
using Pode.Utilities;
57

6-
namespace Pode
8+
namespace Pode.ClientConnections.SSE
79
{
810
public class PodeServerEvent : PodeClientConnection
911
{

src/Listener/PodeServerEventEnvelope.cs renamed to src/Listener/ClientConnections/SSE/PodeServerEventEnvelope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Pode
1+
namespace Pode.ClientConnections.SSE
22
{
33
public class PodeServerEventEnvelope : PodeClientConnectionEnvelope
44
{

src/Listener/PodeSignal.cs renamed to src/Listener/ClientConnections/Signals/PodeSignal.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
using System.IO;
44
using System.Security.Cryptography;
55
using System.Threading.Tasks;
6+
using Pode.Sockets;
7+
using Pode.Requests.Signals;
8+
using Pode.Utilities;
69

7-
namespace Pode
10+
namespace Pode.ClientConnections.Signals
811
{
912
public class PodeSignal : PodeClientConnection
1013
{

0 commit comments

Comments
 (0)