2024-07-04 11:02:45 +05:00
|
|
|
using System.IO;
|
2023-06-28 16:33:27 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Интерфейс сервиса справок страниц
|
|
|
|
/// </summary>
|
|
|
|
public interface IHelpPageService
|
|
|
|
{
|
|
|
|
/// <summary>
|
2023-06-29 16:31:37 +05:00
|
|
|
/// Метод обновления или обновления файла справки
|
2023-06-28 16:33:27 +05:00
|
|
|
/// </summary>
|
|
|
|
/// <param name="urlPage"></param>
|
|
|
|
/// <param name="idCategory"></param>
|
|
|
|
/// <param name="fileName"></param>
|
|
|
|
/// <param name="fileStream"></param>
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
/// <returns></returns>
|
2023-06-29 16:31:37 +05:00
|
|
|
Task<int> AddOrUpdateAsync(string urlPage,
|
2023-06-28 16:33:27 +05:00
|
|
|
int idCategory,
|
|
|
|
string fileName,
|
|
|
|
Stream fileStream,
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
/// <summary>
|
2023-06-29 16:31:37 +05:00
|
|
|
/// Метод получения файла справки
|
2023-06-28 16:33:27 +05:00
|
|
|
/// </summary>
|
2023-07-26 17:53:25 +05:00
|
|
|
/// <param name="pageKey"></param>
|
2023-06-28 16:33:27 +05:00
|
|
|
/// <param name="idCategory"></param>
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
/// <returns></returns>
|
2023-07-26 17:53:25 +05:00
|
|
|
Task<(Stream stream, string fileName)?> GetFileStreamAsync(string pageKey,
|
2023-06-28 16:33:27 +05:00
|
|
|
int idCategory,
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
}
|