Beispiel #1
0
        public FolderItemExporter(IExportWriter exportWriter, ILogger logger)
        {
            if (exportWriter == null)
            {
                throw new ArgumentNullException("exportWriter");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.mExportWriter = exportWriter;
            this.mLogger       = logger;
        }
        public DataSourceItemExporter(
            IExportWriter exportWriter,
            ISerializeWrapper serializeWrapper,
            ILogger logger)
        {
            if (exportWriter == null)
            {
                throw new ArgumentNullException("exportWriter");
            }

            if (serializeWrapper == null)
            {
                throw new ArgumentNullException("serializeWrapper");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.mExportWriter     = exportWriter;
            this.mSerializeWrapper = serializeWrapper;
            this.mLogger           = logger;
        }