|
11 | 11 |
|
12 | 12 | namespace MySqlConnector.Protocol.Serialization
|
13 | 13 | {
|
14 |
| - internal class NegotiateStreamConstants |
| 14 | + internal static class NegotiateStreamConstants |
15 | 15 | {
|
16 | 16 | public const int HeaderLength = 5;
|
17 | 17 | public const byte MajorVersion = 1;
|
@@ -39,11 +39,11 @@ internal class NegotiateToMySqlConverterStream : Stream
|
39 | 39 | bool m_clientHandshakeDone;
|
40 | 40 |
|
41 | 41 | MemoryStream m_readBuffer;
|
42 |
| - MemoryStream m_writeBuffer; |
| 42 | + readonly MemoryStream m_writeBuffer; |
43 | 43 | int m_writePayloadLength;
|
44 |
| - ServerSession m_serverSession; |
45 |
| - IOBehavior m_ioBehavior; |
46 |
| - CancellationToken m_cancellationToken; |
| 44 | + readonly ServerSession m_serverSession; |
| 45 | + readonly IOBehavior m_ioBehavior; |
| 46 | + readonly CancellationToken m_cancellationToken; |
47 | 47 |
|
48 | 48 | public PayloadData? MySQLProtocolPayload { get; private set; }
|
49 | 49 | public NegotiateToMySqlConverterStream(ServerSession serverSession, IOBehavior ioBehavior, CancellationToken cancellationToken)
|
@@ -204,9 +204,9 @@ public override void Flush()
|
204 | 204 | public override long Seek(long offset, SeekOrigin origin) => throw new NotImplementedException();
|
205 | 205 |
|
206 | 206 | public override void SetLength(long value) => throw new NotImplementedException();
|
207 |
| - |
208 | 207 | }
|
209 |
| - internal class AuthGSSAPI |
| 208 | + |
| 209 | + internal static class AuthGSSAPI |
210 | 210 | {
|
211 | 211 | private static string GetServicePrincipalName(byte[] switchRequest)
|
212 | 212 | {
|
|
0 commit comments