LUSID C# SDK
Public Member Functions | Properties | List of all members
Lusid.Sdk.Extensions.TokenProviderConfiguration Class Reference

Custom class, derived from the auto-generated Configuration, which allows the access token to be pulled from an ITokenProvider when required /summary> More...

Inheritance diagram for Lusid.Sdk.Extensions.TokenProviderConfiguration:
Inheritance graph
[legend]

Public Member Functions

 TokenProviderConfiguration (ITokenProvider tokenProvider)
 Create a new Configuration using the supplied token provider /summary>
 
- Public Member Functions inherited from Lusid.Sdk.Client.Configuration
 Configuration ()
 Initializes a new instance of the Configuration class More...
 
 Configuration (IDictionary< string, string > defaultHeaders, IDictionary< string, string > apiKey, IDictionary< string, string > apiKeyPrefix, string basePath="https://fbn-prd.lusid.com/api")
 Initializes a new instance of the Configuration class More...
 
string GetApiKeyWithPrefix (string apiKeyIdentifier)
 Gets the API key with prefix. More...
 
string GetServerUrl (int index)
 Returns URL based on server settings without providing values for the variables More...
 
string GetServerUrl (int index, Dictionary< string, string > inputVariables)
 Returns URL based on server settings. More...
 
string GetOperationServerUrl (string operation, int index)
 Returns URL based on operation server settings. More...
 
string GetOperationServerUrl (string operation, int index, Dictionary< string, string > inputVariables)
 Returns URL based on operation server settings. More...
 
void AddApiKey (string key, string value)
 Add Api Key Header. More...
 
void AddApiKeyPrefix (string key, string value)
 Sets the API key prefix. More...
 

Properties

override string AccessToken [get, set]
 Gets/sets the accesstoken /summary>
 
- Properties inherited from Lusid.Sdk.Client.Configuration
virtual string BasePath [get, set]
 Gets or sets the base path for API access. More...
 
virtual IDictionary< string, string > DefaultHeader [get, set]
 Gets or sets the default header. More...
 
virtual int Timeout [get, set]
 Exists for backwards compatibility, use TimeoutMs instead More...
 
virtual IDictionary< string, string > DefaultHeaders [get, set]
 Gets or sets the default headers. More...
 
virtual int TimeoutMs [get, set]
 Gets or sets the HTTP timeout (milliseconds) of the client. Defaults to DefaultTimeoutMs More...
 
virtual WebProxy Proxy [get, set]
 Gets or sets the proxy More...
 
virtual string UserAgent [get, set]
 Gets or sets the HTTP user agent. More...
 
virtual string Username [get, set]
 Gets or sets the username (HTTP basic authentication). More...
 
virtual string Password [get, set]
 Gets or sets the password (HTTP basic authentication). More...
 
X509CertificateCollection ClientCertificates [get, set]
 Gets or sets certificate collection to be sent with requests. More...
 
virtual string AccessToken [get, set]
 Gets or sets the access token for OAuth2 authentication. More...
 
virtual string OAuthTokenUrl [get, set]
 Gets or sets the token URL for OAuth2 authentication. More...
 
virtual string OAuthClientId [get, set]
 Gets or sets the client ID for OAuth2 authentication. More...
 
virtual string OAuthClientSecret [get, set]
 Gets or sets the client secret for OAuth2 authentication. More...
 
virtual ? OAuthFlow OAuthFlow [get, set]
 Gets or sets the flow for OAuth2 authentication. More...
 
virtual string TempFolderPath [get, set]
 Gets or sets the temporary folder path to store the files downloaded from the server. More...
 
virtual string DateTimeFormat [get, set]
 Gets or sets the date time format used when serializing in the ApiClient By default, it's set to ISO 8601 - "o", for others see: https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx No validation is done to ensure that the string you're providing is valid More...
 
virtual IDictionary< string, string > ApiKeyPrefix [get, set]
 Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. More...
 
virtual IDictionary< string, string > ApiKey [get, set]
 Gets or sets the API key based on the authentication name. More...
 
virtual IList< IReadOnlyDictionary< string, object > > Servers [get, set]
 Gets or sets the servers. More...
 
virtual IReadOnlyDictionary< string, List< IReadOnlyDictionary< string, object > > > OperationServers [get, set]
 Gets or sets the operation servers. More...
 
virtual int RateLimitRetries [get, set]
 The number of retries when being rate limited. Defaults to DefaultRateLimitRetries More...
 
- Properties inherited from Lusid.Sdk.Client.IReadableConfiguration
string AccessToken [get]
 Gets the access token. More...
 
string OAuthTokenUrl [get]
 Gets the OAuth token URL. More...
 
string OAuthClientId [get]
 Gets the OAuth client ID. More...
 
string OAuthClientSecret [get]
 Gets the OAuth client secret. More...
 
OAuthFlowOAuthFlow [get]
 Gets the OAuth flow. More...
 
IDictionary< string, string > ApiKey [get]
 Gets the API key. More...
 
IDictionary< string, string > ApiKeyPrefix [get]
 Gets the API key prefix. More...
 
string BasePath [get]
 Gets the base path. More...
 
string DateTimeFormat [get]
 Gets the date time format. More...
 
IDictionary< string, string > DefaultHeader [get]
 Gets the default header. More...
 
IDictionary< string, string > DefaultHeaders [get]
 Gets the default headers. More...
 
string TempFolderPath [get]
 Gets the temp folder path. More...
 
int TimeoutMs [get]
 Gets the HTTP connection timeout (in milliseconds) More...
 
WebProxy Proxy [get]
 Gets the proxy. More...
 
string UserAgent [get]
 Gets the user agent. More...
 
string Username [get]
 Gets the username. More...
 
string Password [get]
 Gets the password. More...
 
IReadOnlyDictionary< string, List< IReadOnlyDictionary< string, object > > > OperationServers [get]
 Get the servers associated with the operation. More...
 
X509CertificateCollection ClientCertificates [get]
 Gets certificate collection to be sent with requests. More...
 
int RateLimitRetries [get]
 Gets the number of retries when being rate limited More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Lusid.Sdk.Client.Configuration
static string ToDebugReport ()
 Returns a string with essential information for debugging. More...
 
static IReadableConfiguration MergeConfigurations (IReadableConfiguration first, IReadableConfiguration second)
 Merge configurations. More...
 
- Static Public Attributes inherited from Lusid.Sdk.Client.Configuration
const int DefaultTimeoutMs = 1800_000
 This default will be used if a timeout is not set anywhere else More...
 
const int DefaultRateLimitRetries = 2
 This default will be used if the rate limit retries are not set anywhere else More...
 
const string Version = "2.0.0"
 Version of the package. More...
 
const string ISO8601_DATETIME_FORMAT = "o"
 Identifier for ISO 8601 DateTime Format More...
 
static readonly ExceptionFactory DefaultExceptionFactory
 Default creation of exceptions for a given method name and response object More...
 

Detailed Description

Custom class, derived from the auto-generated Configuration, which allows the access token to be pulled from an ITokenProvider when required /summary>


The documentation for this class was generated from the following file: