Beispiel #1
0
 public void Initialize(MSI.IMonoTlsEventSink eventSink)
 {
     if (context != null)
     {
         throw new InvalidOperationException();
     }
     context = TlsProviderFactory.CreateTlsContext(config, serverMode, eventSink);
 }
Beispiel #2
0
 internal static ITlsContext CreateTlsContext(
     ITlsConfiguration config, bool serverMode,
     MSI.IMonoTlsEventSink eventSink)
 {
     return((ITlsContext)CreateInstance(
                tlsContextTypeName,
                new object[] { config, serverMode, eventSink }));
 }