Zum Hauptinhalt springen

ITenantClient

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.Tenants

Interface for the TenantClient.

public interface ITenantClient : IServiceClient

Implements IServiceClient

Properties​

Options​

Options for the TenantClient.

public abstract TenantClientOptions Options { get; }

Property Value​

TenantClientOptions

HttpClient​

The HTTP client used to send requests.

public abstract HttpClient HttpClient { get; }

Property Value​

HttpClient

Methods​

SendQueryAsync<TDto>(GraphQLRequest)​

Sends a query to the GraphQL endpoint.

Task<QlItemsContainer<TDto>> SendQueryAsync<TDto>(GraphQLRequest query)

Type Parameters​

TDto
The data transfer object used to read the response

Parameters​

query GraphQLRequest
The GraphQL query

Returns​

Task<QlItemsContainer<TDto>>

SendMutationAsync<TDto>(GraphQLRequest)​

Sends a mutation to the GraphQL endpoint.

Task<TDto> SendMutationAsync<TDto>(GraphQLRequest query)

Type Parameters​

TDto

Parameters​

query GraphQLRequest

Returns​

Task<TDto>

SendMutationsAsync<TDto>(GraphQLRequest)​

Sends a mutation to the GraphQL endpoint.

Task<IEnumerable<TDto>> SendMutationsAsync<TDto>(GraphQLRequest query)

Type Parameters​

TDto

Parameters​

query GraphQLRequest

Returns​

Task<IEnumerable<TDto>>