private void OnMetadataRequestSent(MetadataRequested data) { Notifications.Enqueue(new MetafileRequestedNotification(data.Hash, new PieceInfo(data.Piece))); }
private void OnMetadataRequestReceived(MetadataRequested data) { Notifications.Enqueue(new MetafileRequestedNotification(data.Hash, new PieceInfo(data.Piece))); MetaShare?.Handle(data); }
public void Handle(MetadataRequested data) { context.Collection.Register(data.Peer, data.Piece); context.Dependencies.Metafile.Read(data.Piece); }