mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 16:36:15 +00:00
Fixes for libs
This commit is contained in:
parent
780da53475
commit
fc41962524
@ -88,14 +88,25 @@ namespace CryptoExchange.Net.Authentication
|
||||
inputStream.Seek(0, SeekOrigin.Begin);
|
||||
}
|
||||
|
||||
private string TryGetValue(JToken data, string key)
|
||||
/// <summary>
|
||||
/// Try get the value of a key from a JToken
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
protected string TryGetValue(JToken data, string key)
|
||||
{
|
||||
if (data[key] == null)
|
||||
return null;
|
||||
return (string) data[key];
|
||||
}
|
||||
|
||||
private SecureString CreateSecureString(string source)
|
||||
/// <summary>
|
||||
/// Create a secure string from a string
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <returns></returns>
|
||||
protected SecureString CreateSecureString(string source)
|
||||
{
|
||||
var secureString = new SecureString();
|
||||
foreach (var c in source)
|
||||
|
@ -57,6 +57,21 @@
|
||||
<param name="identifierKey">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'.</param>
|
||||
<param name="identifierSecret">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'.</param>
|
||||
</member>
|
||||
<member name="M:CryptoExchange.Net.Authentication.ApiCredentials.TryGetValue(Newtonsoft.Json.Linq.JToken,System.String)">
|
||||
<summary>
|
||||
Try get the value of a key from a JToken
|
||||
</summary>
|
||||
<param name="data"></param>
|
||||
<param name="key"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:CryptoExchange.Net.Authentication.ApiCredentials.CreateSecureString(System.String)">
|
||||
<summary>
|
||||
Create a secure string from a string
|
||||
</summary>
|
||||
<param name="source"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:CryptoExchange.Net.Authentication.ApiCredentials.Dispose">
|
||||
<summary>
|
||||
Dispose
|
||||
|
@ -16,7 +16,7 @@ namespace CryptoExchange.Net.Sockets
|
||||
/// <summary>
|
||||
/// Socket implementation
|
||||
/// </summary>
|
||||
internal class BaseSocket: IWebsocket
|
||||
public class BaseSocket: IWebsocket
|
||||
{
|
||||
internal static int lastStreamId;
|
||||
private static readonly object streamIdLock = new object();
|
||||
|
Loading…
x
Reference in New Issue
Block a user