internal static unsafe DeployedApplicationList CreateFromNativeList( NativeTypes.FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST *nativeList) { var retval = new DeployedApplicationList(); var nativeItemArray = (NativeTypes.FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM *)nativeList->Items; for (int i = 0; i < nativeList->Count; ++i) { var nativeItem = *(nativeItemArray + i); retval.Add(DeployedApplication.CreateFromNative(nativeItem)); } return(retval); }
internal static unsafe DeployedApplicationPagedList CreateFromNativeList( NativeTypes.FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST *nativeList, NativeTypes.FABRIC_PAGING_STATUS *nativePagingStatus) { var retval = new DeployedApplicationPagedList(); var nativeItemArray = (NativeTypes.FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM *)nativeList->Items; for (int i = 0; i < nativeList->Count; ++i) { var nativeItem = *(nativeItemArray + i); retval.Add(DeployedApplication.CreateFromNative(nativeItem)); } if (nativePagingStatus != null) { retval.ContinuationToken = NativeTypes.FromNativeString(nativePagingStatus->ContinuationToken); } return(retval); }