C# 클래스 BitSharper.DownloadListener

Listen to chain download events and print useful informational messages.
Progress, StartDownload, DoneDownload maybe be overridden to change the way the user is notified.

Methods are called with the event listener object locked so your implementation does not have to be thread safe. @author [email protected] (Miron Cuperman a.k.a. devrandom)

상속: AbstractPeerEventListener
파일 보기 프로젝트 열기: TangibleCryptography/BitSharper 1 사용 예제들

공개 메소드들

메소드 설명
Await ( ) : void

Wait for the chain to be downloaded.

OnBlocksDownloaded ( Peer peer, Block block, int blocksLeft ) : void
OnChainDownloadStarted ( Peer peer, int blocksLeft ) : void

보호된 메소드들

메소드 설명
DoneDownload ( ) : void

Called when we are done downloading the block chain.

Progress ( double pct, System.DateTime date ) : void

Called when download progress is made.

StartDownload ( int blocks ) : void

Called when download is initiated.

메소드 상세

Await() 공개 메소드

Wait for the chain to be downloaded.
public Await ( ) : void
리턴 void

DoneDownload() 보호된 메소드

Called when we are done downloading the block chain.
protected DoneDownload ( ) : void
리턴 void

OnBlocksDownloaded() 공개 메소드

public OnBlocksDownloaded ( Peer peer, Block block, int blocksLeft ) : void
peer Peer
block Block
blocksLeft int
리턴 void

OnChainDownloadStarted() 공개 메소드

public OnChainDownloadStarted ( Peer peer, int blocksLeft ) : void
peer Peer
blocksLeft int
리턴 void

Progress() 보호된 메소드

Called when download progress is made.
protected Progress ( double pct, System.DateTime date ) : void
pct double The percentage of chain downloaded, estimated.
date System.DateTime The date of the last block downloaded.
리턴 void

StartDownload() 보호된 메소드

Called when download is initiated.
protected StartDownload ( int blocks ) : void
blocks int The number of blocks to download, estimated.
리턴 void