예제 #1
0
        /// <summary>
        /// Creates an new instance of the SharedOptionsBase.
        /// </summary>
        /// <param name="sharedOptions"></param>
        protected SharedOptionsBase(SharedOptions sharedOptions)
        {
            if (sharedOptions == null)
            {
                throw new ArgumentNullException(nameof(sharedOptions));
            }

            SharedOptions = sharedOptions;
        }
 /// <summary>
 /// Defaults to all request paths
 /// </summary>
 /// <param name="sharedOptions"></param>
 public LibraryFileOptions(SharedOptions sharedOptions) : base(sharedOptions)
 {
     OnPrepareResponse = _ => { };
 }
 /// <summary>
 /// Enabled directory browsing all request paths
 /// </summary>
 /// <param name="sharedOptions"></param>
 public LibraryBrowserOptions(SharedOptions sharedOptions)
     : base(sharedOptions)
 {
 }