DD.WellWorkover.Cloud/AsbCloudApp/Services/IFileShareService.cs
Фролов 170693f445 Refactor:
FilesService move FileSharing functions to GoogleDriveService;
FilesService.CreateFileMarkAsync() Move drillingProgram related logic into DrillingProgramService.CreateFileMarkAsync();
FilesService.MarkFileMarkAsDeletedAsync() Move drillingProgram related logic into DrillingProgramService.MarkFileMarkAsDeletedAsync();
IGoogleDriveService cleanup and rename to IFileShareService;
GoogleDriveService check token before usage and resresh it id needeed;
DrillingProgramController move logic to service;
DrillingProgramController use dto;
FileController remove unused method;
2021-11-09 17:36:44 +05:00

15 lines
377 B
C#

using System.Threading;
using System.Threading.Tasks;
using System.IO;
namespace AsbCloudApp.Services
{
public interface IFileShareService
{
Task<string> PublishFileToCloudAsync(string filePath, string originalName,
CancellationToken token);
Task DeleteFileAsync(string sharedFileId,
CancellationToken token = default);
}
}