|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.DotNet.Helix.Client
{
internal class UriPayload : IPayload
{
private readonly Uri _payloadUri;
public UriPayload(Uri payloadUri)
{
_payloadUri = payloadUri;
}
public Task<string> UploadAsync(IBlobContainer payloadContainer, Action<string> log, CancellationToken cancellationToken)
{
return Task.FromResult(_payloadUri.AbsoluteUri);
}
}
}
|