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