87 lines
2.9 KiB
C#
87 lines
2.9 KiB
C#
using xApi.Models;
|
|
|
|
namespace xApi.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Implementing Azure Services Interfaces ...
|
|
/// </summary>
|
|
public interface IAzureServices
|
|
{
|
|
/// <summary>
|
|
/// Retrieve Connection Info ...
|
|
/// </summary>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
/// <exception cref="InvalidOperationException"></exception>
|
|
Task<AzureConnectionDataDto> GetConnectionDataAsync(
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
/// <summary>
|
|
/// Retrieve Connection Info ...
|
|
/// </summary>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
/// <exception cref="InvalidOperationException"></exception>
|
|
Task<AzureListDto<AzureProjectDto>> GetProjectsAsync(
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
/// <summary>
|
|
/// Retrieve a List of Azure Repositories ...
|
|
/// </summary>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
/// <exception cref="InvalidOperationException"></exception>
|
|
Task<AzureListDto<AzureRepositoryDto>> GetRepositoriesAsync(
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
/// <summary>
|
|
/// Retrieve Specified Work Item ...
|
|
/// </summary>
|
|
/// <param name="workItemId"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<AzureWorkItemDto> GetWorkItemAsync(
|
|
long workItemId,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
/// <summary>
|
|
/// Get Specified Project's WorkItem Types ...
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<AzureListDto<AzureWorkItemTypeDto>> GetProjectWorkItemTypesAsync(
|
|
Guid id,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
/// <summary>
|
|
/// Get Specified WorkItem Revisions (History) ...
|
|
/// </summary>
|
|
/// <param name="workItemId"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<AzureListDto<WorkItemRevisionDto>> GetWorkItemRevisionsAsync(
|
|
long workItemId,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
/// <summary>
|
|
/// Retrieve Work Item Fields ...
|
|
/// </summary>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<AzureListDto<AzureWorkItemFieldDto>> GetWorkItemFieldsAsync(
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
|
|
// AzureListDto<AzureRepositoryDto>
|
|
// Task<string> GetWorkItemsAsync(
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
}
|
|
} |