Exemplo n.º 1
0
 public PhysicalStorageProvider(PhysicalStorageOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _Options = options;
 }
Exemplo n.º 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;
 }