コード例 #1
0
 public PhysicalStorageProvider(PhysicalStorageOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _Options = options;
 }
コード例 #2
0
 public PhysicalStorage(PhysicalStorageOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (options.Root == null)
     {
         throw new ArgumentException();
     }
     if (options.FolderSelector == null)
     {
         throw new ArgumentException();
     }
     if (options.FilenameSelector == null)
     {
         throw new ArgumentException();
     }
     _Options = options;
 }