Example #1
0
        /// <summary>
        /// Gets the parameters of a disconnect command requested by the host
        /// </summary>
        /// <returns>Disconnect parameters</returns>
        public ANTFS_DisconnectParameters GetDisconnectParameters()
        {
            if (!bInitialized)
            {
                throw new ObjectDisposedException("ANTFSClient object has been disposed");
            }

            ANTFS_DisconnectParameters returnRequest = new ANTFS_DisconnectParameters();

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

            return(returnRequest);
        }
        /// <summary>
        /// Gets the parameters of a disconnect command requested by the host
        /// </summary>
        /// <returns>Disconnect parameters</returns>
        public ANTFS_DisconnectParameters GetDisconnectParameters()
        {
            if (!bInitialized)
                throw new ObjectDisposedException("ANTFSClient object has been disposed");

            ANTFS_DisconnectParameters returnRequest = new ANTFS_DisconnectParameters();
            if (ANTFSClient_GetDisconnectParameters(unmanagedClientPtr, ref returnRequest) == 0)
                throw new ANTFS_Exception("No disconnect parameters are available, probably in wrong state");

            return returnRequest;
        }
Example #3
0
 private static extern byte ANTFSClient_GetDisconnectParameters(
     IntPtr ClientPtr,
     ref ANTFS_DisconnectParameters pstDisconnectParams);
 private static extern byte ANTFSClient_GetDisconnectParameters(
     IntPtr ClientPtr,
     ref ANTFS_DisconnectParameters pstDisconnectParams);