예제 #1
0
        private void UpdateVIF()
        {
            new DeleteVIFAction(vif).RunExternal(Session);
            var createAction = new CreateVIFAction(VM, proxyVIF);

            createAction.RunExternal(Session);
            Result = createAction.Result;
        }
예제 #2
0
        protected override void ExecuteCore(SelectedItemCollection selection)
        {
            Trace.Assert(selection.Count == 1);

            var action = new CreateVIFAction(_vm, _proxyVIF);
            action.Completed += action_Completed;
            action.RunAsync();
        }
예제 #3
0
        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;
        }
예제 #4
0
 private void UpdateVIF()
 {
     new DeleteVIFAction(vif).RunExternal(Session);
     var createAction = new CreateVIFAction(VM, proxyVIF);
     createAction.RunExternal(Session);
     Result = createAction.Result;
 }