4 instantiations of TlsContext
System.Net.Security (4)
System\Net\Security\TlsContext.cs (4)
130return new TlsContext(bag, isWedge: false, templateHasServerOptions: false); 134return new TlsContext(bag, isWedge: false, templateHasServerOptions: true); 157return new TlsContext(bag, isWedge: false, templateHasServerOptions: false); 166return new TlsContext(sharedOptions, isWedge: true, templateHasServerOptions: sharedOptions.IsServer);
21 references to TlsContext
System.Net.Security (21)
System\Net\Security\SslStream.TlsSessionWedge.cs (2)
27TlsContext ctx = TlsContext.WrapShared(_sslAuthenticationOptions);
System\Net\Security\TlsBufferSession.cs (2)
15/// A newly-constructed instance has no <see cref="TlsContext"/>. Call 34/// <exception cref="InvalidOperationException">A <see cref="TlsContext"/> has not been assigned via <see cref="TlsSession.SetContext"/>.</exception>
System\Net\Security\TlsContext.cs (7)
22/// Lifetime: it is safe to dispose the <see cref="TlsContext"/> while 60internal SslAuthenticationOptions Options => _options ?? throw new ObjectDisposedException(nameof(TlsContext)); 114/// <returns>A new server-side <see cref="TlsContext"/>.</returns> 116public static TlsContext CreateServer(SslServerAuthenticationOptions options) 141/// <returns>A new client-side <see cref="TlsContext"/>.</returns> 152public static TlsContext CreateClient(SslClientAuthenticationOptions options) 163internal static TlsContext WrapShared(SslAuthenticationOptions sharedOptions)
System\Net\Security\TlsOperationStatus.cs (1)
60/// has no resolved <see cref="TlsContext"/>.
System\Net\Security\TlsSession.cs (8)
56private TlsContext? _context; 170private void InitializeFromContext(TlsContext context) 522/// switch AND options were supplied at <see cref="TlsContext"/> creation time. 595/// Assigns a <see cref="TlsContext"/> to this session. Must be called at least 601/// <param name="context">A fully-configured <see cref="TlsContext"/>.</param> 613public void SetContext(TlsContext context) 686/// <see cref="TlsContext"/> was created without one. 1673internal TlsContext Context => _context!;
System\Net\Security\TlsSocketSession.cs (1)
20/// server <see cref="TlsContext"/> before invoking any operation.