C# Class BitSharp.Network.Workers.HeadersRequestWorker

Inheritance: BitSharp.Common.Worker
Mostrar archivo Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
HeadersRequestWorker ( BitSharp.Common.WorkerConfig workerConfig, LocalClient localClient, BitSharp.Core.CoreDaemon coreDaemon ) : BitSharp.Common
SendGetHeaders ( Peer peer ) : System.Threading.Tasks.Task

Protected Methods

Method Description
SubDispose ( ) : void
SubStart ( ) : void
SubStop ( ) : void
WorkAction ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
CalculateBlockLocatorHashes ( IImmutableList blockHashes ) : ImmutableArray
FlushWorkerMethod ( BitSharp.Common.WorkerMethod instance ) : System.Threading.Tasks.Task
HandleBlockHeaders ( Peer peer, IImmutableList blockHeaders ) : void
HandleTargetChainChanged ( object sender, EventArgs e ) : void

Method Details

HeadersRequestWorker() public method

public HeadersRequestWorker ( BitSharp.Common.WorkerConfig workerConfig, LocalClient localClient, BitSharp.Core.CoreDaemon coreDaemon ) : BitSharp.Common
workerConfig BitSharp.Common.WorkerConfig
localClient LocalClient
coreDaemon BitSharp.Core.CoreDaemon
return BitSharp.Common

SendGetHeaders() public method

public SendGetHeaders ( Peer peer ) : System.Threading.Tasks.Task
peer Peer
return System.Threading.Tasks.Task

SubDispose() protected method

protected SubDispose ( ) : void
return void

SubStart() protected method

protected SubStart ( ) : void
return void

SubStop() protected method

protected SubStop ( ) : void
return void

WorkAction() protected method

protected WorkAction ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task