diff --git a/CryptoExchange.Net/Authentication/ApiCredentials.cs b/CryptoExchange.Net/Authentication/ApiCredentials.cs index 0cadf6f..6b2d56a 100644 --- a/CryptoExchange.Net/Authentication/ApiCredentials.cs +++ b/CryptoExchange.Net/Authentication/ApiCredentials.cs @@ -88,14 +88,25 @@ namespace CryptoExchange.Net.Authentication inputStream.Seek(0, SeekOrigin.Begin); } - private string TryGetValue(JToken data, string key) + /// + /// Try get the value of a key from a JToken + /// + /// + /// + /// + protected string TryGetValue(JToken data, string key) { if (data[key] == null) return null; return (string) data[key]; } - private SecureString CreateSecureString(string source) + /// + /// Create a secure string from a string + /// + /// + /// + protected SecureString CreateSecureString(string source) { var secureString = new SecureString(); foreach (var c in source) diff --git a/CryptoExchange.Net/CryptoExchange.Net.xml b/CryptoExchange.Net/CryptoExchange.Net.xml index df25990..0206b87 100644 --- a/CryptoExchange.Net/CryptoExchange.Net.xml +++ b/CryptoExchange.Net/CryptoExchange.Net.xml @@ -57,6 +57,21 @@ A key to identify the credentials for the API. For example, when set to `binanceKey` the json data should contain a value for the property `binanceKey`. Defaults to 'apiKey'. A key to identify the credentials for the API. For example, when set to `binanceSecret` the json data should contain a value for the property `binanceSecret`. Defaults to 'apiSecret'. + + + Try get the value of a key from a JToken + + + + + + + + Create a secure string from a string + + + + Dispose diff --git a/CryptoExchange.Net/Sockets/BaseSocket.cs b/CryptoExchange.Net/Sockets/BaseSocket.cs index e1b719f..fee144a 100644 --- a/CryptoExchange.Net/Sockets/BaseSocket.cs +++ b/CryptoExchange.Net/Sockets/BaseSocket.cs @@ -16,7 +16,7 @@ namespace CryptoExchange.Net.Sockets /// /// Socket implementation /// - internal class BaseSocket: IWebsocket + public class BaseSocket: IWebsocket { internal static int lastStreamId; private static readonly object streamIdLock = new object();