示例#1
0
 public HttpFileServer(
     Components.IFileSourceResolver fileSourceResolver,
     IContentTypeProvider contentTypeProvider,
     IOptionsMonitor <Components.HttpServerOptions> optionsSource,
     RecyclableMemoryStreamManager streamManager)
 {
     _fileSourceResolver  = fileSourceResolver ?? throw new ArgumentNullException(nameof(fileSourceResolver));
     _contentTypeProvider = contentTypeProvider ?? throw new ArgumentNullException(nameof(contentTypeProvider));
     _optionsSource       = optionsSource ?? throw new ArgumentNullException(nameof(optionsSource));
     _streamManager       = streamManager ?? throw new ArgumentNullException(nameof(streamManager));
 }