public UpdateVIFCommand(IMainWindow mainWindow, VM vm, VIF vif, Proxy_VIF proxyVIF) : base(mainWindow, vm) { _vm = vm; _vif = vif; _proxyVIF = proxyVIF; }
public CreateVIFAction(VM vm, Proxy_VIF proxyVIF) : base(vm.Connection, String.Format(Messages.ACTION_VIF_CREATING_TITLE, vm.Name)) { _proxyVIF = proxyVIF; VM = vm; XmlRpcMethods.ForEach( method => ApiMethodsToRoleCheck.Add( method ) ); }
public Response<string> create(string session, Proxy_VIF vif) { Db.Table t = proxy.db.Tables["vif"]; string opaque_ref = proxy.CreateOpaqueRef(); Db.Row r = t.Rows.Add(opaque_ref); r.PopulateFrom(DbProxy.ProxyToHashtable(typeof(Proxy_VIF), vif)); proxy.SendCreateObject("vif", opaque_ref); return new Response<string>(opaque_ref); }
/// <summary> /// Update the VIF /// </summary> /// <param name="vm"></param> /// <param name="vif"></param> /// <param name="proxyVIF"></param> public UpdateVIFAction(VM vm, VIF vif, Proxy_VIF proxyVIF) : base(vm.Connection, String.Format(Messages.ACTION_VIF_UPDATING_TITLE, vif.NetworkName(), vm.Name)) { this.vif = vif; VM = vm; this.proxyVIF = proxyVIF; Initialise(); xmlRpcMethods.ForEach(method => ApiMethodsToRoleCheck.Add(method)); }
public CreateVIFCommand(IMainWindow mainWindow, VM vm, Proxy_VIF proxyVIF) : base(mainWindow, vm) { _vm = vm; _proxyVIF = proxyVIF; }