Files
rudder-csharp-sdk/Abstractions/IUploadTransport.cs
T
2026-08-12 14:04:55 +03:00

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);
}