21 lines
434 B
C#
21 lines
434 B
C#
namespace Messenger.Api.Services;
|
|
|
|
public interface IAttachmentStorage
|
|
{
|
|
Task CheckAsync(CancellationToken ct);
|
|
Task PutAsync(
|
|
string objectKey,
|
|
Stream content,
|
|
string contentType,
|
|
CancellationToken ct);
|
|
|
|
Task CopyToAsync(
|
|
string objectKey,
|
|
Stream destination,
|
|
CancellationToken ct);
|
|
|
|
Task DeleteAsync(
|
|
string objectKey,
|
|
CancellationToken ct);
|
|
}
|