Class CrawlerProxy
Proxy that communicates with the crawler
public sealed class CrawlerProxy : ServiceProxy, IServiceProxy
- Inheritance
-
CrawlerProxy
- Implements
- Inherited Members
- Extension Methods
Remarks
ctor
Constructors
CrawlerProxy(IRpcClient, string)
Proxy that communicates with the crawler
public CrawlerProxy(IRpcClient rpcClient, string originService)
Parameters
rpcClient
IRpcClientIRpcClient instance to use for rpc communication
originService
string
Remarks
ctor
Methods
GetIPs(DateTime, int, int, CancellationToken)
Retrieves ip addresses of peers that have connected after a given time
public Task<(IEnumerable<string> IPs, int Total)> GetIPs(DateTime after, int offset = 0, int limit = 10000, CancellationToken cancellationToken = default)
Parameters
after
DateTimeoffset
intlimit
intcancellationToken
CancellationTokenA token to allow the call to be cancelled
Returns
GetPeerCounts(CancellationToken)
Retrieves aggregate information about peers
public Task<PeerCounts> GetPeerCounts(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA token to allow the call to be cancelled
Returns
- Task<PeerCounts>
Information about peers