BitSharper.DownloadListener.Await C# (CSharp) 메소드

Await() 공개 메소드

Wait for the chain to be downloaded.
public Await ( ) : void
리턴 void
        public void Await()
        {
            _done.WaitOne();
        }

Usage Example

예제 #1
0
        /// <summary>
        /// Download the block chain from peers.
        /// </summary>
        /// <remarks>
        /// This method wait until the download is complete. "Complete" is defined as downloading
        /// from at least one peer all the blocks that are in that peer's inventory.
        /// </remarks>
        public void DownloadBlockChain()
        {
            var listener = new DownloadListener();

            StartBlockChainDownload(listener);
            listener.Await();
        }
All Usage Examples Of BitSharper.DownloadListener::Await