Exemple #1
0
        /// <summary>
        /// Gets the full parameters for a download, upload or erase request
        /// from the host
        /// </summary>
        /// <returns>Request parameters</returns>
        public ANTFS_RequestParameters GetRequestParameters()
        {
            if (!bInitialized)
            {
                throw new ObjectDisposedException("ANTFSClient object has been disposed");
            }

            ANTFS_RequestParameters returnRequest = new ANTFS_RequestParameters();

            if (ANTFSClient_GetRequestParameters(unmanagedClientPtr, ref returnRequest) == 0)
            {
                throw new ANTFS_Exception("No request parameters are available, probably in wrong state");
            }

            return(returnRequest);
        }
        /// <summary>
        /// Gets the full parameters for a download, upload or erase request
        /// from the host
        /// </summary>
        /// <returns>Request parameters</returns>
        public ANTFS_RequestParameters GetRequestParameters()
        {
            if (!bInitialized)
                throw new ObjectDisposedException("ANTFSClient object has been disposed");

            ANTFS_RequestParameters returnRequest = new ANTFS_RequestParameters();
            if (ANTFSClient_GetRequestParameters(unmanagedClientPtr, ref returnRequest) == 0)
                throw new ANTFS_Exception("No request parameters are available, probably in wrong state");

            return returnRequest;
        }
Exemple #3
0
 private static extern byte ANTFSClient_GetRequestParameters(
     IntPtr ClientPtr,
     ref ANTFS_RequestParameters pstRequestParams);
 private static extern byte ANTFSClient_GetRequestParameters(
     IntPtr ClientPtr,
     ref ANTFS_RequestParameters pstRequestParams);