public RepositoryBodyWriter(IUploadRepository repository, string clientFileName) { if (repository == null) { throw new ArgumentNullException("repository"); } _repository = repository; this.ClientFileName = clientFileName; this.TempKey = _repository.Begin(IOUtil.GetExtension(clientFileName)); }