/// <summary>
        /// Export as Name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public IFluentExportStrategyConfiguration AsName(string name)
        {
            if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));

            _exportConfiguration.AddExportAsName(name);

            return this;
        }
예제 #2
0
        /// <summary>
        /// Export as specific name
        /// </summary>
        /// <param name="name">export name</param>
        /// <returns></returns>
        public IFluentExportInstanceConfiguration <T> AsName(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("Value cannot be null or empty.", nameof(name));
            }

            _exportConfiguration.AddExportAsName(name);

            return(this);
        }