public Cpu(IRegisters registers, IRam ram) { this.registers = registers; this.ram = ram; this.destinationProvider = new DestinationProvider(registers, ram); this.sourceProvider = new SourceProvider(registers, ram); }
public UdpTransmiteTask(IDestinationProvider destinationProvider) { _destinationProvider = destinationProvider; _cancellationTokenSource = new CancellationTokenSource(); _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); _data = new BlockingCollection <Item>(); AutoCatchException = false; }
public DataCollector( IDestinationProvider destinationProvider, IDataPreparer DataPreparer, ICollectItemsProvider collectItemsProvider, IFileNameProvider fileNameProvider, IDelay delay, ICollectItemsCollector collectItemsCollector) { _destinationProvider = destinationProvider; _dataPreparer = DataPreparer; _collectItemsProvider = collectItemsProvider; _fileNameProvider = fileNameProvider; _delay = delay; _collectItemsCollector = collectItemsCollector; }
/// <param name="minAnonScoreTarget">Coins those have reached anonymity target, but still can be mixed if desired.</param> /// <param name="consolidationMode">If true, then aggressively try to consolidate as many coins as it can.</param> public CoinJoinClient( IWasabiHttpClientFactory httpClientFactory, IKeyChain keyChain, IDestinationProvider destinationProvider, RoundStateUpdater roundStatusUpdater, int minAnonScoreTarget = int.MaxValue, bool consolidationMode = false, TimeSpan doNotRegisterInLastMinuteTimeLimit = default) { HttpClientFactory = httpClientFactory; KeyChain = keyChain; DestinationProvider = destinationProvider; RoundStatusUpdater = roundStatusUpdater; MinAnonScoreTarget = minAnonScoreTarget; ConsolidationMode = consolidationMode; SecureRandom = new SecureRandom(); DoNotRegisterInLastMinuteTimeLimit = doNotRegisterInLastMinuteTimeLimit; }