@@ -44,21 +44,14 @@ public class HttpListenerHost : IHttpServer, IDisposable
44
44
45
45
private readonly IServerConfigurationManager _config ;
46
46
private readonly INetworkManager _networkManager ;
47
- private readonly IStreamHelper _streamHelper ;
48
47
49
48
private readonly IServerApplicationHost _appHost ;
50
49
51
50
private readonly ITextEncoding _textEncoding ;
52
- private readonly ISocketFactory _socketFactory ;
53
- private readonly ICryptoProvider _cryptoProvider ;
54
51
55
- private readonly IFileSystem _fileSystem ;
56
52
private readonly IJsonSerializer _jsonSerializer ;
57
53
private readonly IXmlSerializer _xmlSerializer ;
58
- private readonly X509Certificate _certificate ;
59
- private readonly IEnvironmentInfo _environment ;
60
54
private readonly Func < Type , Func < string , object > > _funcParseFn ;
61
- private readonly bool _enableDualModeSockets ;
62
55
63
56
public Action < IRequest , IResponse , object > [ ] ResponseFilters { get ; set ; }
64
57
@@ -71,28 +64,20 @@ public class HttpListenerHost : IHttpServer, IDisposable
71
64
public HttpListenerHost ( IServerApplicationHost applicationHost ,
72
65
ILogger logger ,
73
66
IServerConfigurationManager config ,
74
- string serviceName ,
75
- string defaultRedirectPath , INetworkManager networkManager , IStreamHelper streamHelper , ITextEncoding textEncoding , ISocketFactory socketFactory , ICryptoProvider cryptoProvider , IJsonSerializer jsonSerializer , IXmlSerializer xmlSerializer , IEnvironmentInfo environment , X509Certificate certificate , Func < Type , Func < string , object > > funcParseFn , bool enableDualModeSockets , IFileSystem fileSystem )
67
+ string defaultRedirectPath , INetworkManager networkManager , ITextEncoding textEncoding , IJsonSerializer jsonSerializer , IXmlSerializer xmlSerializer , Func < Type , Func < string , object > > funcParseFn )
76
68
{
77
69
Instance = this ;
78
70
79
71
_appHost = applicationHost ;
80
72
DefaultRedirectPath = defaultRedirectPath ;
81
73
_networkManager = networkManager ;
82
- _streamHelper = streamHelper ;
83
74
_textEncoding = textEncoding ;
84
- _socketFactory = socketFactory ;
85
- _cryptoProvider = cryptoProvider ;
86
75
_jsonSerializer = jsonSerializer ;
87
76
_xmlSerializer = xmlSerializer ;
88
- _environment = environment ;
89
- _certificate = certificate ;
90
- _funcParseFn = funcParseFn ;
91
- _enableDualModeSockets = enableDualModeSockets ;
92
- _fileSystem = fileSystem ;
93
77
_config = config ;
94
78
95
79
_logger = logger ;
80
+ _funcParseFn = funcParseFn ;
96
81
97
82
ResponseFilters = new Action < IRequest , IResponse , object > [ ] { } ;
98
83
}
0 commit comments