You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
900 B

2 years ago
using Connected.Net;
using Connected.ServiceModel.Client.Net;
using Connected.ServiceModel.Client.Subscription;
using Connected.ServiceModel.Storage;
using Connected.Services;
namespace Connected.ServiceModel.Client.Storage;
internal sealed class DeleteDirectory : ServiceAction<DeleteDirectoryArgs>
{
public DeleteDirectory(ISubscriptionService subscription, IHttpService http, IConnectedServer server, ICancellationContext cancel)
{
Subscription = subscription;
Http = http;
Server = server;
Cancel = cancel;
}
public ISubscriptionService Subscription { get; }
public IHttpService Http { get; }
public IConnectedServer Server { get; }
public ICancellationContext Cancel { get; }
protected override async Task OnInvoke()
{
await Http.Post(await Server.SelectUrl(new ConnectedServerUrlArgs { Kind = ConnectedUrlKind.FileSystem }), Arguments, Cancel.CancellationToken);
}
}