Class YandexTrackerClient
- Namespace
- YandexTracker
- Assembly
- YandexTracker.dll
The default IYandexTrackerClient. Pass an HttpClient to let the application's factory manage it; without one the client creates its own and disposes of it.
public sealed class YandexTrackerClient : IYandexTrackerClient, IDisposable
- Inheritance
-
YandexTrackerClient
- Implements
- Inherited Members
Constructors
YandexTrackerClient(HttpClient, YandexTrackerClientOptions)
Creates a client over an HttpClient owned by the caller.
public YandexTrackerClient(HttpClient http, YandexTrackerClientOptions options)
Parameters
httpHttpClientThe HTTP client to send requests with; it is not disposed with this client.
optionsYandexTrackerClientOptionsConnection settings; validated with Validate().
Exceptions
- ArgumentNullException
httporoptionsis null.- ArgumentException
The token or organization id is missing.
- ArgumentOutOfRangeException
The retry count is negative.
YandexTrackerClient(YandexTrackerClientOptions)
Creates a client with its own HttpClient.
public YandexTrackerClient(YandexTrackerClientOptions options)
Parameters
optionsYandexTrackerClientOptionsConnection settings; validated with Validate().
Exceptions
- ArgumentNullException
optionsis null.- ArgumentException
The token or organization id is missing.
- ArgumentOutOfRangeException
The retry count is negative.
Properties
Issues
Issues: get, search, create, update, links, transitions and comments.
public IIssuesClient Issues { get; }
Property Value
Queues
The organization's queues.
public IQueuesClient Queues { get; }
Property Value
Statuses
The organization's issue statuses.
public IStatusesClient Statuses { get; }
Property Value
Users
The organization's users.
public IUsersClient Users { get; }
Property Value
Methods
Dispose()
Disposes of the HttpClient when the client created it itself.
public void Dispose()
MyselfAsync(CancellationToken)
The user the token acts as; a cheap way to check the connection.
public Task<User> MyselfAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.