Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpResultFactory" /> class.
 /// </summary>
 public HttpResultFactory(ILoggerFactory loggerfactory, IFileSystem fileSystem, IJsonSerializer jsonSerializer, IBrotliCompressor brotliCompressor)
 {
     _fileSystem       = fileSystem;
     _jsonSerializer   = jsonSerializer;
     _brotliCompressor = brotliCompressor;
     _logger           = loggerfactory.CreateLogger("HttpResultFactory");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpResultFactory" /> class.
 /// </summary>
 public HttpResultFactory(ILogManager logManager, IFileSystem fileSystem, IJsonSerializer jsonSerializer, IBrotliCompressor brotliCompressor)
 {
     _fileSystem       = fileSystem;
     _jsonSerializer   = jsonSerializer;
     _brotliCompressor = brotliCompressor;
     _logger           = logManager.GetLogger("HttpResultFactory");
 }