Files
velopack/src/Velopack.Vpk/Commands/Flow/LoginCommandRunner.cs
2024-05-22 22:29:24 -07:00

18 lines
478 B
C#

using System.Threading;
using Velopack.Packaging.Abstractions;
using Velopack.Packaging.Flow;
namespace Velopack.Vpk.Commands.Flow;
#nullable enable
public class LoginCommandRunner(IVelopackFlowServiceClient Client) : ICommand<LoginOptions>
{
public async Task Run(LoginOptions options)
{
await Client.LoginAsync(new() {
VelopackBaseUrl = options.VelopackBaseUrl,
ApiKey = options.ApiKey,
}, CancellationToken.None);
}
}