mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
fe6144ba70
- this commit contains a temporary image for PVS_site Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
26 lines
825 B
C#
26 lines
825 B
C#
using XenAPI;
|
|
|
|
namespace XenAdmin.Actions
|
|
{
|
|
public class DeletePvsSiteAction : PureAsyncAction
|
|
{
|
|
private readonly PVS_site pvsSite;
|
|
|
|
public DeletePvsSiteAction(PVS_site pvsSite)
|
|
: base(pvsSite.Connection, string.Format(Messages.ACTION_DELETE_PVS_SITE_TITLE, pvsSite.Name.Ellipsise(50)),
|
|
Messages.ACTION_DELETE_PVS_SITE_DESCRIPTION, false)
|
|
{
|
|
System.Diagnostics.Trace.Assert(pvsSite != null);
|
|
this.pvsSite = pvsSite;
|
|
}
|
|
|
|
protected override void Run()
|
|
{
|
|
RelatedTask = PVS_site.async_forget(Session, pvsSite.opaque_ref);
|
|
PollToCompletion();
|
|
Description = Messages.ACTION_DELETE_PVS_SITE_DONE;
|
|
PercentComplete = 100;
|
|
}
|
|
}
|
|
}
|