mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-22 05:42:53 +00:00
Performance improvements
This commit is contained in:
@@ -95,7 +95,7 @@ namespace CryptoExchange.Net.Authentication
|
||||
public ApiCredentials(Stream inputStream, string? identifierKey = null, string? identifierSecret = null)
|
||||
{
|
||||
var accessor = new SystemTextJsonStreamMessageAccessor();
|
||||
if (!accessor.Read(inputStream, false))
|
||||
if (!accessor.Read(inputStream, false).Result)
|
||||
throw new ArgumentException("Input stream not valid json data");
|
||||
|
||||
var key = accessor.GetValue<string>(MessagePath.Get().Property(identifierKey ?? "apiKey"));
|
||||
|
||||
Reference in New Issue
Block a user