Skip to content

Commit 7007686

Browse files
committed
making pre-processor a non-static class
1 parent 9e1b1b2 commit 7007686

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/dds.net-server.lib/Core/Internal/IOProcessor/EncodersAndDecoders/PacketPreprocessor.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace DDS.Net.Server.Core.Internal.IOProcessor.EncodersAndDecoders
44
{
5-
internal static class PacketPreprocessor
5+
internal class PacketPreprocessor
66
{
7-
private static Mutex mutex = new();
8-
private static Dictionary<string, byte[]> previousData = new();
9-
private static Dictionary<string, int> previousDataStartIndex = new();
10-
private static Dictionary<string, int> previousNextWriteIndex = new();
7+
private Mutex mutex = new();
8+
private Dictionary<string, byte[]> previousData = new();
9+
private Dictionary<string, int> previousDataStartIndex = new();
10+
private Dictionary<string, int> previousNextWriteIndex = new();
1111

12-
internal static void AddData(DataFromClient data)
12+
internal void AddData(DataFromClient data)
1313
{
1414
lock (mutex)
1515
{
@@ -108,7 +108,7 @@ internal static void AddData(DataFromClient data)
108108
}
109109
}
110110

111-
internal static byte[] GetSingleMessage(string clientRef)
111+
internal byte[] GetSingleMessage(string clientRef)
112112
{
113113
lock (mutex)
114114
{

0 commit comments

Comments
 (0)