4 instantiations of TlsContext
System.Net.Security (4)
System\Net\Security\TlsContext.cs (4)
130
return new
TlsContext
(bag, isWedge: false, templateHasServerOptions: false);
134
return new
TlsContext
(bag, isWedge: false, templateHasServerOptions: true);
157
return new
TlsContext
(bag, isWedge: false, templateHasServerOptions: false);
166
return new
TlsContext
(sharedOptions, isWedge: true, templateHasServerOptions: sharedOptions.IsServer);
21 references to TlsContext
System.Net.Security (21)
System\Net\Security\SslStream.TlsSessionWedge.cs (2)
27
TlsContext
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
60
internal SslAuthenticationOptions Options => _options ?? throw new ObjectDisposedException(nameof(
TlsContext
));
114
/// <returns>A new server-side <see cref="
TlsContext
"/>.</returns>
116
public static
TlsContext
CreateServer(SslServerAuthenticationOptions options)
141
/// <returns>A new client-side <see cref="
TlsContext
"/>.</returns>
152
public static
TlsContext
CreateClient(SslClientAuthenticationOptions options)
163
internal static
TlsContext
WrapShared(SslAuthenticationOptions sharedOptions)
System\Net\Security\TlsOperationStatus.cs (1)
60
/// has no resolved <see cref="
TlsContext
"/>.
System\Net\Security\TlsSession.cs (8)
56
private
TlsContext
? _context;
170
private 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>
613
public void SetContext(
TlsContext
context)
686
/// <see cref="
TlsContext
"/> was created without one.
1673
internal
TlsContext
Context => _context!;
System\Net\Security\TlsSocketSession.cs (1)
20
/// server <see cref="
TlsContext
"/> before invoking any operation.