public PropertyEnumerationResult Convert(WinFabricPropertyEnumerationResult previousResult) { PropertyEnumerationResult result = null; if (previousResult != null) { result = this.EnumerationHolder.RetrieveObject(previousResult.Identifier).RetrieveEnumeration <PropertyEnumerationResult>(); } return(result); }
public WinFabricPropertyEnumerationResult Convert(PropertyEnumerationResult result) { WinFabricPropertyEnumerationResult actualResult = null; if (result != null) { int id = this.EnumerationHolder.StoreObject(new EnumerationWrapper(result)); actualResult = new WinFabricPropertyEnumerationResult(id, result); } return(actualResult); }
public OperationResult <WinFabricPropertyEnumerationResult> ConvertToWinFabricPropertyEnumerationResult(PropertyEnumerationResult enumerationResult, uint errorCode) { OperationResult <WinFabricPropertyEnumerationResult> actualResult = new OperationResult <WinFabricPropertyEnumerationResult>(errorCode); if (enumerationResult != null) { WinFabricPropertyEnumerationResult testProperty = this.Convert(enumerationResult); actualResult = FabricClientState.CreateOperationResultFromNativeErrorCode <WinFabricPropertyEnumerationResult>(testProperty); } return(actualResult); }