Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user