public void HttpNfcLeaseAbort(LocalizedMethodFault fault) { try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4); HttpNfcLeaseAbortRequestType httpNfcLeaseAbortRequestType = new HttpNfcLeaseAbortRequestType(); httpNfcLeaseAbortRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); httpNfcLeaseAbortRequestType.fault = (VimApi_65.LocalizedMethodFault)VIConvert.ToWsdlType(fault); this.VimServiceProxy.HttpNfcLeaseAbort(new HttpNfcLeaseAbortRequest(httpNfcLeaseAbortRequestType)); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } }
public void SetTaskState(TaskInfoState state, object result, LocalizedMethodFault fault) { try { SetTaskStateRequestType setTaskStateRequestType = new SetTaskStateRequestType(); setTaskStateRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); setTaskStateRequestType.state = (VimApi_65.TaskInfoState)VIConvert.ToWsdlType(state); setTaskStateRequestType.result = result; setTaskStateRequestType.fault = (VimApi_65.LocalizedMethodFault)VIConvert.ToWsdlType(fault); this.VimServiceProxy.SetTaskState(new SetTaskStateRequest(setTaskStateRequestType)); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } }