Пример #1
0
 /// <summary>Initializes a new instance of <see cref="FileSystemHandler"/>.</summary>
 /// <param name="baseDir">Specifies the directory in the local file system from which files are served and directory contents are listed.</param>
 /// <param name="options">Specifies the options associated with this instance, or null to use the <see cref="DefaultOptions"/>.</param>
 public FileSystemHandler(string baseDir, FileSystemOptions options = null)
 {
     Options = options;
     BaseDirectory = baseDir;
 }
Пример #2
0
 /// <summary>Initializes a new instance of <see cref="FileSystemHandler"/>.</summary>
 /// <param name="baseDir">Specifies the directory in the local file system from which files are served and directory contents are listed.</param>
 /// <param name="options">Specifies the options associated with this instance, or null to use the <see cref="DefaultOptions"/>.</param>
 public FileSystemHandler(string baseDir, FileSystemOptions options = null)
 {
     Options       = options;
     BaseDirectory = baseDir;
 }