コード例 #1
0
ファイル: Cpu.cs プロジェクト: FredrikL/DCPU16
 public Cpu(IRegisters registers, IRam ram)
 {
     this.registers = registers;
     this.ram = ram;
     this.destinationProvider = new DestinationProvider(registers, ram);
     this.sourceProvider = new SourceProvider(registers, ram);
 }
コード例 #2
0
        public UdpTransmiteTask(IDestinationProvider destinationProvider)
        {
            _destinationProvider = destinationProvider;

            _cancellationTokenSource = new CancellationTokenSource();

            _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

            _data = new BlockingCollection <Item>();

            AutoCatchException = false;
        }
コード例 #3
0
 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;
 }
コード例 #4
0
 /// <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;
 }