15 lines
483 B
C#
15 lines
483 B
C#
|
|
using System.Threading;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace RudderSdk.Core.Abstractions;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Uploads raw bytes to pre-signed UGC URLs. Optional; required only by
|
||
|
|
/// <see cref="UgcService.UploadAsync"/>.
|
||
|
|
/// </summary>
|
||
|
|
public interface IUploadTransport
|
||
|
|
{
|
||
|
|
/// <summary>PUTs the payload to the pre-signed URL with the given content type.</summary>
|
||
|
|
Task PutAsync(string url, byte[] data, string contentType, CancellationToken cancellationToken = default);
|
||
|
|
}
|