mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-04-13 00:22:22 +00:00
wip
This commit is contained in:
parent
7e75cc257a
commit
46d3ffcf66
@ -109,6 +109,11 @@ namespace CryptoExchange.Net.Clients
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual AuthenticationProvider? GetAuthenticationProvider() => null;
|
public virtual AuthenticationProvider? GetAuthenticationProvider() => null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Configured environment name
|
||||||
|
/// </summary>
|
||||||
|
public abstract string EnvironmentName { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ctor
|
/// ctor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -820,6 +825,12 @@ namespace CryptoExchange.Net.Clients
|
|||||||
public abstract class RestApiClient<TEnvironment> : RestApiClient, IRestApiClient
|
public abstract class RestApiClient<TEnvironment> : RestApiClient, IRestApiClient
|
||||||
where TEnvironment : TradeEnvironment
|
where TEnvironment : TradeEnvironment
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public new RestExchangeOptions<TEnvironment> ClientOptions => (RestExchangeOptions<TEnvironment>)base.ClientOptions;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override string EnvironmentName => ClientOptions.Environment.Name;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ctor
|
/// ctor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -148,6 +148,11 @@ namespace CryptoExchange.Net.Clients
|
|||||||
/// Get the AuthenticationProvider implementation, or null if no ApiCredentials are set
|
/// Get the AuthenticationProvider implementation, or null if no ApiCredentials are set
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual AuthenticationProvider? GetAuthenticationProvider() => null;
|
public virtual AuthenticationProvider? GetAuthenticationProvider() => null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Configured environment name
|
||||||
|
/// </summary>
|
||||||
|
public abstract string EnvironmentName { get; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1036,6 +1041,12 @@ namespace CryptoExchange.Net.Clients
|
|||||||
public abstract class SocketApiClient<TEnvironment> : SocketApiClient, ISocketApiClient
|
public abstract class SocketApiClient<TEnvironment> : SocketApiClient, ISocketApiClient
|
||||||
where TEnvironment : TradeEnvironment
|
where TEnvironment : TradeEnvironment
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public new SocketExchangeOptions<TEnvironment> ClientOptions => (SocketExchangeOptions<TEnvironment>)base.ClientOptions;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public override string EnvironmentName => ClientOptions.Environment.Name;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ctor
|
/// ctor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user