Interface ITokenSetter
- Namespace
- Sportradar.OddsFeed.SDK.Api.Config
- Assembly
- Sportradar.OddsFeed.SDK.dll
Defines a contract implemented by classes taking care of the 1st step when building configuration - setting the token
public interface ITokenSetter
Methods
BuildFromConfigFile()
Gets the configuration properties from configuration file. Any values already set by methods on the current instance are overridden. Builds and returns a IUofConfiguration instance.
IUofConfiguration BuildFromConfigFile()
Returns
- IUofConfiguration
The constructed IUofConfiguration instance
SetAccessToken(string)
Sets the access token used to access feed resources (AMQP broker, Sports API, ...)
IEnvironmentSelector SetAccessToken(string accessToken)
Parameters
accessTokenstringThe access token used to access feed resources
Returns
- IEnvironmentSelector
The IEnvironmentSelector instance allowing the selection of target environment
SetAccessTokenFromConfigFile()
Sets the access token used to access feed resources (AMQP broker, Sports API, ...) to value read from configuration file
IEnvironmentSelector SetAccessTokenFromConfigFile()
Returns
- IEnvironmentSelector
The IEnvironmentSelector instance allowing the selection of target environment