示例#1
0
        public PropertyEnumerationResult Convert(WinFabricPropertyEnumerationResult previousResult)
        {
            PropertyEnumerationResult result = null;

            if (previousResult != null)
            {
                result = this.EnumerationHolder.RetrieveObject(previousResult.Identifier).RetrieveEnumeration <PropertyEnumerationResult>();
            }

            return(result);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }