Skip to content

Commit b4e87cf

Browse files
authored
Merge pull request #56 from socketlabs/usr/matt.soler/threading-issue
fix missing property
2 parents a15e382 + 6311da3 commit b4e87cf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/SocketLabs/InjectionApi/Core/Serialization/InjectionRequest.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ internal class InjectionRequest
1313
/// <summary>
1414
/// Your SocketLabs ServerId number.
1515
/// </summary>
16-
public readonly int _serverId;
16+
private readonly int _serverId;
1717

1818
/// <summary>
1919
/// Your SocketLabs Injection API key.
2020
/// </summary>
21-
public readonly string? _apiKey;
21+
private readonly string? _apiKey;
22+
23+
public int ServerId => _serverId;
24+
public string? ApiKey => _apiKey;
2225

2326
/// <summary>
2427
/// Creates a new instance of the <c>InjectionRequest</c> class.
@@ -29,7 +32,6 @@ public InjectionRequest(int serverId, string? apiKey)
2932
{
3033
_serverId = serverId;
3134
_apiKey = apiKey;
32-
Messages = new List<MessageJson>();
3335
}
3436

3537
/// <summary>

0 commit comments

Comments
 (0)