Interface IAnybillClientFactory
A factory to create instances of the IAnybillClient.
Namespace: anybill.POS.Client.Factories
Assembly: anybill.POS.Client.dll
Syntax
public interface IAnybillClientFactory
Methods
Create(IAuthTokenProvider)
Creates a new IAnybillClient-instance with an explicit IAuthTokenProvider.
Declaration
IAnybillClient Create(IAuthTokenProvider authTokenProvider)
Parameters
Type | Name | Description |
---|---|---|
IAuthTokenProvider | authTokenProvider | The token provider used for authentication. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(IAuthTokenProvider, AnybillEnvironment)
Creates a new IAnybillClient-instance with custom configuration.
Declaration
IAnybillClient Create(IAuthTokenProvider authTokenProvider, AnybillEnvironment anybillEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IAuthTokenProvider | authTokenProvider | The token provider used for authentication. |
AnybillEnvironment | anybillEnvironment | The anybill environment to use. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(IAuthTokenProvider, AnybillEnvironment, HttpClient)
Creates a new IAnybillClient-instance with custom configuration.
Declaration
IAnybillClient Create(IAuthTokenProvider authTokenProvider, AnybillEnvironment anybillEnvironment, HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
IAuthTokenProvider | authTokenProvider | The token provider used for authentication. |
AnybillEnvironment | anybillEnvironment | The anybill environment to use. |
System.Net.Http.HttpClient | httpClient | A custom http client that will be used for all requests. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(IAuthTokenProvider, HttpClient)
Creates a new IAnybillClient-instance with custom configuration.
Declaration
IAnybillClient Create(IAuthTokenProvider authTokenProvider, HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
IAuthTokenProvider | authTokenProvider | The token provider used for authentication. |
System.Net.Http.HttpClient | httpClient | A custom http client that will be used for all requests. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(Action<AnybillAuthenticationOptionsBuilder>)
Creates a new IAnybillClient-instance with an explicit IAuthTokenProvider.
Declaration
IAnybillClient Create(Action<AnybillAuthenticationOptionsBuilder> configureAuthentication)
Parameters
Type | Name | Description |
---|---|---|
System.Action<AnybillAuthenticationOptionsBuilder> | configureAuthentication | Action to configure the DefaultAuthTokenProvider used for authentication. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(Action<AnybillAuthenticationOptionsBuilder>, AnybillEnvironment)
Creates a new IAnybillClient-instance with custom configuration.
Declaration
IAnybillClient Create(Action<AnybillAuthenticationOptionsBuilder> configureAuthentication, AnybillEnvironment anybillEnvironment)
Parameters
Type | Name | Description |
---|---|---|
System.Action<AnybillAuthenticationOptionsBuilder> | configureAuthentication | Action to configure the DefaultAuthTokenProvider used for authentication. |
AnybillEnvironment | anybillEnvironment | The anybill environment to use. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(Action<AnybillAuthenticationOptionsBuilder>, AnybillEnvironment, HttpClient)
Creates a new IAnybillClient-instance with custom configuration.
Declaration
IAnybillClient Create(Action<AnybillAuthenticationOptionsBuilder> configureAuthentication, AnybillEnvironment anybillEnvironment, HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Action<AnybillAuthenticationOptionsBuilder> | configureAuthentication | Action to configure the DefaultAuthTokenProvider used for authentication. |
AnybillEnvironment | anybillEnvironment | The anybill environment to use. |
System.Net.Http.HttpClient | httpClient | A custom http client that will be used for all requests. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |
Create(Action<AnybillAuthenticationOptionsBuilder>, HttpClient)
Creates a new IAnybillClient-instance with custom configuration.
Declaration
IAnybillClient Create(Action<AnybillAuthenticationOptionsBuilder> configureAuthentication, HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Action<AnybillAuthenticationOptionsBuilder> | configureAuthentication | Action to configure the DefaultAuthTokenProvider used for authentication. |
System.Net.Http.HttpClient | httpClient | A custom http client that will be used for all requests. |
Returns
Type | Description |
---|---|
IAnybillClient | A new instance of the IAnybillClient. |