Пример #1
0
 public SecurePipelineListener(PipelineFactory factory, CertificateList certificateList)
 {
     _factory             = factory;
     _serverNameProvider  = new ServerNameProvider();
     _keyscheduleProvider = new KeyScheduleProvider();
     _cryptoProvider      = new CryptoProvider();
     _resumptionProvider  = new ResumptionProvider(4, _cryptoProvider);
     _certificateList     = certificateList;
 }
Пример #2
0
 public SecurePipeListener(PipeFactory factory, CertificateList certificateList, ILoggerFactory logFactory)
 {
     _logFactory          = logFactory;
     _logger              = logFactory?.CreateLogger <SecurePipeListener>();
     _connectionLogger    = logFactory?.CreateLogger <SecurePipelineConnection>();
     _factory             = factory;
     _serverNameProvider  = new ServerNameProvider();
     _keyscheduleProvider = new KeyScheduleProvider();
     _cryptoProvider      = new CryptoProvider(certificateList);
     _resumptionProvider  = new ResumptionProvider(4, _cryptoProvider);
     _certificateList     = certificateList;
 }