コード例 #1
0
 public FileEncodeTask(IEncoderFactory encoderFactory, Func <IAudioSource> audioSourceLazy, string targetFilename, AudioFileTag tag)
 {
     this.EncoderFactory  = encoderFactory;
     this.AudioSourceLazy = audioSourceLazy;
     this.TargetFilename  = targetFilename;
     this.Tag             = tag;
 }
コード例 #2
0
 public FileEncodeTask(IEncoderFactory encoderFactory, Func<IAudioSource> audioSourceLazy, string targetFilename, AudioFileTag tag)
 {
     this.EncoderFactory = encoderFactory;
     this.AudioSourceLazy = audioSourceLazy;
     this.TargetFilename = targetFilename;
     this.Tag = tag;
 }
コード例 #3
0
        public MainForm(IEncoderFactory encoderFactory,
                        IFileWatcher fileWatcher)
        {
            InitializeComponent();

            this.encoderFactory = encoderFactory;
            this.fileWatcher = fileWatcher;
        }
コード例 #4
0
        public MainForm(IEncoderFactory encoderFactory,
                        IFileWatcher fileWatcher)
        {
            InitializeComponent();

            this.encoderFactory = encoderFactory;
            this.fileWatcher    = fileWatcher;
        }
コード例 #5
0
 public ReplayGainTask(IEncoderFactory factory, Release release, bool recalculateReplayGain, bool writePeaks, bool saveDynamicRange)
 {
     this.EncoderFactory        = factory;
     this.Release               = release;
     this.TrackTasks            = new List <Item>();
     this.RecalculateReplayGain = recalculateReplayGain;
     this.WritePeaks            = writePeaks;
     this.SaveDynamicRange      = saveDynamicRange;
 }
コード例 #6
0
 public ReplayGainTask(IEncoderFactory factory, Release release, bool recalculateReplayGain, bool writePeaks, bool saveDynamicRange)
 {
     this.EncoderFactory = factory;
     this.Release = release;
     this.TrackTasks = new List<Item>();
     this.RecalculateReplayGain = recalculateReplayGain;
     this.WritePeaks = writePeaks;
     this.SaveDynamicRange = saveDynamicRange;
 }
コード例 #7
0
        /// <summary>
        /// The default constructor.
        /// </summary>
        /// <param name="factory">A factory used to create encoders.</param>
        /// <param name="uncategorizedMovieRepository">A container for uncategorized movie information.</param>
        /// <param name="encodingProgressContainer">A container for encoding progress information.</param>
        public EncoderManager(IEncoderFactory factory, IUncategorizedMovieRepository uncategorizedMovieRepository,
			IEncodingProgressContainer encodingProgressContainer)
        {
            if (factory == null)
                throw new ArgumentNullException("factory");
            if (uncategorizedMovieRepository == null)
                throw new ArgumentNullException("uncategorizedMovieRepository");
            if (encodingProgressContainer == null)
                throw new ArgumentNullException("encodingProgressContainer");

            _factory = factory;
            _uncategorizedMovieRepository = uncategorizedMovieRepository;
            _encodingProgressContainer = encodingProgressContainer;
            _queue = new List<IList<Action>>();
        }
コード例 #8
0
 public NodeMessageSerialChannel(IByteStream byteStream, IMessageParserFactory parserFactory, IEncoderFactory encoderFactory)
 {
     _byteStream     = byteStream;
     _parserFactory  = parserFactory;
     _encoderFactory = encoderFactory;
 }
コード例 #9
0
 public ValuesController(IEncoderFactory encoderFactory, IAuthenticatorFactory authenticatorFactory)
 {
     this.encoderFactory       = encoderFactory;
     this.authenticatorFactory = authenticatorFactory;
 }
コード例 #10
0
 public CompressionPresenter(IFileWrapper fileWrapper, IEncoderFactory encoderFactory)
 {
     this.fileWrapper = fileWrapper;
     this.encoderFactory = encoderFactory;
 }
コード例 #11
0
 public void Setup()
 {
     _mockConfigurationProvider = new Mock<IConfigurationProvider>();
     _sut = new EncoderFactory(_mockConfigurationProvider.Object);
 }
コード例 #12
0
 public WabHttpHandler(IHttpHandlerFactory handlerFactory, IEncoderFactory encoderFactory, IResponseWriterFactory writerFactory)
 {
     this.handlerFactory = handlerFactory;
     this.encoderFactory = encoderFactory;
     this.writerFactory = writerFactory;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:ByteDev.Crypto.Encryption.EncryptionService" /> class.
 /// </summary>
 /// <param name="encryptionAlgorithm">Encryption algorithm to use when encrypting and decrypting.</param>
 /// <param name="keyIv">The key and initialization vector to use when encrypting and decrypting.</param>
 /// <exception cref="T:System.ArgumentNullException"><paramref name="encryptionAlgorithm" /> is null.</exception>
 /// <exception cref="T:System.ArgumentNullException"><paramref name="keyIv" /> is null.</exception>
 public EncryptionService(IEncryptionAlgorithm encryptionAlgorithm, EncryptionKeyIv keyIv)
 {
     _encryptionAlgorithm = encryptionAlgorithm ?? throw new ArgumentNullException(nameof(encryptionAlgorithm));
     _keyIv          = keyIv ?? throw new ArgumentNullException(nameof(keyIv));
     _encoderFactory = new EncoderFactory();
 }