Пример #1
0
        public VideoConverter(IFamilyUnitOfWork unitOfWork, IFamilyInfrastructureProvider infrastructure)
        {
            _unitOfWork     = unitOfWork;
            _infrastructure = infrastructure;

            if (_infrastructure == null)
            {
                throw new CustomArgumentException("Invalid Infrastructure provided for VideoConverter!");
            }

            _converter = new CloudConverterClient(_infrastructure.GetSettings("CloudConverterApiKey"));
        }
Пример #2
0
 public void Init()
 {
     _uow = new FamilyUnitOfWork();
     _cloudConverterApiKey = _infrastructure.GetSettings("CloudConverterApiKey");
     _onlineVideoUrl       = _infrastructure.GetSettings("OnlineVideoUrl");
 }