26 lines
696 B
C#
26 lines
696 B
C#
using DD.Persistence.Models;
|
||
using Refit;
|
||
|
||
namespace DD.Persistence.Client.Clients.Interfaces;
|
||
|
||
/// <summary>
|
||
/// Клиент для работы с системами
|
||
/// </summary>
|
||
public interface IDataSourceSystemClient : IDisposable
|
||
{
|
||
/// <summary>
|
||
/// Получить системы
|
||
/// </summary>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<DataSourceSystemDto>> Get(CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Добавить систему
|
||
/// </summary>
|
||
/// <param name="dataSourceSystemDto"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task Add(DataSourceSystemDto dataSourceSystemDto, CancellationToken token);
|
||
}
|