public TransactionInputDecodingService( IDecodingService decodingService, IFunctionCallRepository functionCallRepository, ILogFactory logFactory, ITransactionRepository transactionRepository) { _decodingService = decodingService; _functionCallRepository = functionCallRepository; _log = logFactory.CreateLog(this); _transactionRepository = transactionRepository; }
public TransactionLogDecodingService( IDecodingService decodingService, IEventRepository eventRepository, ILogFactory logFactory, ITransactionRepository transactionRepository, ITransactionRunner transactionRunner) { _decodingService = decodingService; _eventRepository = eventRepository; _log = logFactory.CreateLog(this); _transactionRepository = transactionRepository; _transactionRunner = transactionRunner; }
public string Process(string inputStr, CipherDirection dir, IEncodingService encoder, IDecodingService decoder) { if (_pwdHash == null) { throw new CipherDataNotSetException(); } byte[] input = decoder.Decode(inputStr); byte[] result; if (dir == CipherDirection.Encryption) { result = _cryptoService.Encrypt(input, _pwdHash, _ivHash); } else { result = _cryptoService.Decrypt(input, _pwdHash, _ivHash); } return(encoder.Encode(result)); }
public EncryptionService(IHashService hashService, IDecodingService decodingService, ICryptoService cryptoService) { _hashService = hashService; _decodingService = decodingService; _cryptoService = cryptoService; }
public DecodingServiceTests() { _decodingService = new DecodingService(); }
public DecodingServiceTest() { InitializeBass(); _decodingService = new DecodingService(QueueCapacity, true); }