Esempio n. 1
0
        /// <summary>
        /// Create new instance.
        /// </summary>
        /// <param name="settings">excel settings</param>
        /// <param name="filePath">filePath</param>
        internal ExcelSpreadSheetQuickClient(ExcelSpreadSheetSettings settings, string filePath)
        {
            if (string.IsNullOrEmpty(filePath) || string.IsNullOrWhiteSpace(filePath))
            {
                throw new ArgumentNullException(nameof(filePath));
            }

            settings.Validate();

            this.settings = settings;
            this.filePath = filePath;
        }
Esempio n. 2
0
 /// <summary>
 /// Generate a ExcelSpreadSheetQuickClient.
 /// </summary>
 public static IQuickClient Build(this ClientBuilder _, ExcelSpreadSheetSettings settings, string filePath)
 {
     return(new ExcelSpreadSheetQuickClient(settings: settings, filePath: filePath));
 }