forked from ddrilling/AsbCloudServer
170693f445
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;
15 lines
377 B
C#
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);
|
|
}
|
|
} |