TenantClient
Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.Tenants
Implementation tenant specific proxy of the ITenantClient interface.
public class TenantClient : ITenantClient, IServiceClient
Inheritance Object → TenantClient
Implements ITenantClient, IServiceClient
Properties
AccessToken
public IServiceClientAccessToken AccessToken { get; }
Property Value
Options
public TenantClientOptions Options { get; }
Property Value
ServiceUri
public Uri ServiceUri { get; }
Property Value
Uri
HttpClient
public HttpClient HttpClient { get; }
Property Value
HttpClient
Constructors
TenantClient(IOptions<TenantClientOptions>, ITenantClientAccessToken)
Constructor
public TenantClient(IOptions<TenantClientOptions> dataSourceClientOptions, ITenantClientAccessToken tenantClientAccessToken)
Parameters
dataSourceClientOptions IOptions<TenantClientOptions>
Options for data source client using DI
tenantClientAccessToken ITenantClientAccessToken
Access Token for backend access
TenantClient(TenantClientOptions, ITenantClientAccessToken)
Constructor
public TenantClient(TenantClientOptions tenantClientOptions, ITenantClientAccessToken tenantClientAccessToken)
Parameters
tenantClientOptions TenantClientOptions
Options for data source client
tenantClientAccessToken ITenantClientAccessToken
Access Token for backend access
Methods
SendQueryAsync<TDto>(GraphQLRequest)
public Task<QlItemsContainer<TDto>> SendQueryAsync<TDto>(GraphQLRequest query)
Type Parameters
TDto
Parameters
query GraphQLRequest
Returns
SendMutationAsync<TDto>(GraphQLRequest)
public Task<TDto> SendMutationAsync<TDto>(GraphQLRequest query)
Type Parameters
TDto
Parameters
query GraphQLRequest
Returns
SendMutationsAsync<TDto>(GraphQLRequest)
public Task<IEnumerable<TDto>> SendMutationsAsync<TDto>(GraphQLRequest query)
Type Parameters
TDto
Parameters
query GraphQLRequest