public ReceiverHandler(PeerHash peer, ReceiverConnection connection, ReceiverConfiguration configuration, ReceiverHooks hooks) { this.peer = peer; this.hooks = hooks; this.connection = connection; this.configuration = configuration; }
public void StartProcessing(PeerHash peer, NetworkConnection connection) { ReceiverConnection wrapped = new ReceiverConnection(connection); ReceiverHandler handler = new ReceiverHandler(peer, wrapped, configuration, hooks); handler.Execute(); }