private void UpdateVIF() { new DeleteVIFAction(vif).RunExternal(Session); var createAction = new CreateVIFAction(VM, proxyVIF); createAction.RunExternal(Session); Result = createAction.Result; }
protected override void ExecuteCore(SelectedItemCollection selection) { Trace.Assert(selection.Count == 1); var action = new CreateVIFAction(_vm, _proxyVIF); action.Completed += action_Completed; action.RunAsync(); }
protected override void Run() { Description = Messages.ACTION_VIF_UPDATING; new DeleteVIFAction(vif, true).RunExternal(Session); var createAction = new CreateVIFAction(VM, vifDescriptor, true); createAction.RunExternal(Session); RebootRequired = createAction.RebootRequired; Description = Messages.ACTION_VIF_UPDATED; }