4 instantiations of TlsContext
System.Net.Security (4)
System\Net\Security\TlsContext.cs (4)
140return new TlsContext(bag, isWedge: false, templateHasServerOptions: false); 144return new TlsContext(bag, isWedge: false, templateHasServerOptions: true); 167return new TlsContext(bag, isWedge: false, templateHasServerOptions: false); 176return new TlsContext(sharedOptions, isWedge: true, templateHasServerOptions: sharedOptions.IsServer);
22 references to TlsContext
System.Net.Security (22)
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 (8)
22/// Ownership: the <see cref="TlsContext"/> retains any 31/// Lifetime: callers must keep the <see cref="TlsContext"/> alive for as long 70internal SslAuthenticationOptions Options => _options ?? throw new ObjectDisposedException(nameof(TlsContext)); 124/// <returns>A new server-side <see cref="TlsContext"/>.</returns> 126public static TlsContext CreateServer(SslServerAuthenticationOptions options) 151/// <returns>A new client-side <see cref="TlsContext"/>.</returns> 162public static TlsContext CreateClient(SslClientAuthenticationOptions options) 173internal 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; 176private void InitializeFromContext(TlsContext context) 528/// switch AND options were supplied at <see cref="TlsContext"/> creation time. 601/// Assigns a <see cref="TlsContext"/> to this session. Must be called at least 607/// <param name="context">A fully-configured <see cref="TlsContext"/>.</param> 619public void SetContext(TlsContext context) 692/// <see cref="TlsContext"/> was created without one. 1679internal TlsContext Context => _context!;
System\Net\Security\TlsSocketSession.cs (1)
20/// server <see cref="TlsContext"/> before invoking any operation.