Skip to content

Commit 7898cb2

Browse files
committed
Update reference assemblies
1 parent 6220198 commit 7898cb2

File tree

9 files changed

+48
-17
lines changed

9 files changed

+48
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0"?>
2+
<docs>
3+
<members name="SSPIContextProvider">
4+
<SSPIContextProvider>
5+
<summary>A provider to generate SSPI contexts</summary>
6+
</SSPIContextProvider>
7+
<ServerNames>
8+
<summary>Gets a readonly list of server names we are connecting to.</summary>
9+
</ServerNames>
10+
<GenerateSspiClientContext>
11+
<summary>Method to generate SSPI client context blobs.</summary>
12+
<param name="input">Received buffer, if any.</param>
13+
<returns>A memory owned type with the response of the client.</returns>
14+
</GenerateSspiClientContext>
15+
</members>
16+
</docs>

doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml

+3
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,9 @@ The following sample tries to open a connection to an invalid database to simula
12301230
<value>The server process Id (SPID) of the active connection.</value>
12311231
<remarks>Returns 0 if the connection is inactive on the client side.</remarks>
12321232
</ServerProcessId>
1233+
<SSPIContextProviderFactory>
1234+
<summary>Gets or sets the <see cref="T:Microsoft.Data.SqlClient.SSPIContextProviderFactory" /> object bound to this connection.</summary>
1235+
</SSPIContextProviderFactory>
12331236
<State>
12341237
<summary>Indicates the state of the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> during the most recent network operation performed on the connection.</summary>
12351238
<value>An <see cref="T:System.Data.ConnectionState" /> enumeration.</value>

src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs

+11
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,17 @@ public void ResetStatistics() { }
948948
public System.Collections.Generic.IDictionary<string, object> RetrieveInternalInfo() { throw null; }
949949
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/RetryLogicProvider/*' />
950950
public SqlRetryLogicBaseProvider RetryLogicProvider { get { throw null; } set { } }
951+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/SSPIContextProviderFactory/*' />
952+
public System.Func<SSPIContextProvider> SSPIContextProviderFactory { get { throw null; } set { } }
953+
}
954+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/SSPIContextProvider/*' />
955+
public abstract class SSPIContextProvider
956+
{
957+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/ServerNames/*' />
958+
public System.Collections.Generic.IReadOnlyList<string> ServerNames { get { throw null; } }
959+
960+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/GenerateSspiClientContext/*' />
961+
protected abstract System.Buffers.IMemoryOwner<byte> GenerateSspiClientContext(System.ReadOnlyMemory<byte> input);
951962
}
952963
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnectionColumnEncryptionSetting.xml' path='docs/members[@name="SqlConnectionColumnEncryptionSetting"]/SqlConnectionColumnEncryptionSetting/*'/>
953964
public enum SqlConnectionColumnEncryptionSetting

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,7 @@ public Func<SqlAuthenticationParameters, CancellationToken, Task<SqlAuthenticati
735735
}
736736
}
737737

738-
/// <summary>
739-
/// Gets or sets a <see cref="SSPIContextProvider"/>.
740-
/// </summary>
738+
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/SSPIContextProviderFactory/*' />
741739
public Func<SSPIContextProvider> SSPIContextProviderFactory
742740
{
743741
get { return _sspiContextProviderFactory; }

src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs

+11
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,17 @@ public void ResetStatistics() { }
888888
public System.Collections.Generic.IDictionary<string, object> RetrieveInternalInfo() { throw null; }
889889
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/RetryLogicProvider/*' />
890890
public SqlRetryLogicBaseProvider RetryLogicProvider { get { throw null; } set { } }
891+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/SSPIContextProviderFactory/*' />
892+
public System.Func<SSPIContextProvider> SSPIContextProviderFactory { get { throw null; } set { } }
893+
}
894+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/SSPIContextProvider/*' />
895+
public abstract class SSPIContextProvider
896+
{
897+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/ServerNames/*' />
898+
public System.Collections.Generic.IReadOnlyList<string> ServerNames { get { throw null; } }
899+
900+
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/GenerateSspiClientContext/*' />
901+
protected abstract System.Buffers.IMemoryOwner<byte> GenerateSspiClientContext(System.ReadOnlyMemory<byte> input);
891902
}
892903
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnectionColumnEncryptionSetting.xml' path='docs/members[@name="SqlConnectionColumnEncryptionSetting"]/SqlConnectionColumnEncryptionSetting/*'/>
893904
public enum SqlConnectionColumnEncryptionSetting

src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
</ItemGroup>
1818
<ItemGroup>
1919
<PackageReference Include="Microsoft.Identity.Client" Version="$(MicrosoftIdentityClientVersion)" />
20+
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
2021
</ItemGroup>
2122
</Project>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,7 @@ public Func<SqlAuthenticationParameters, CancellationToken, Task<SqlAuthenticati
780780
}
781781
}
782782

783-
/// <summary>
784-
/// Gets or sets a <see cref="SSPIContextProvider"/>.
785-
/// </summary>
783+
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/SSPIContextProviderFactory/*' />
786784
public Func<SSPIContextProvider> SSPIContextProviderFactory
787785
{
788786
get { return _sspiContextProviderFactory; }

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/SSPIContextProvider.cs

+3-11
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
namespace Microsoft.Data.SqlClient
1010
{
11-
/// <summary>
12-
/// A provider to generate SSPI contexts
13-
/// </summary>
11+
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/SSPIContextProvider/*' />
1412
public abstract class SSPIContextProvider
1513
{
1614
private TdsParser _parser = null!;
@@ -34,16 +32,10 @@ private protected virtual void Initialize()
3432
{
3533
}
3634

37-
/// <summary>
38-
/// Gets a readonly list of server names we are connecting to.
39-
/// </summary>
35+
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/ServerNames/*' />
4036
public IReadOnlyList<string> ServerNames => _serverNames;
4137

42-
/// <summary>
43-
/// Method to generate SSPI client context blobs.
44-
/// </summary>
45-
/// <param name="input">Received buffer, if any.</param>
46-
/// <returns>A memory owned type with the response of the client.</returns>
38+
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SSPIContextProvider.xml' path='docs/members[@name="SSPIContextProvider"]/GenerateSspiClientContext/*' />
4739
protected abstract IMemoryOwner<byte> GenerateSspiClientContext(ReadOnlyMemory<byte> input);
4840

4941
internal IMemoryOwner<byte> SSPIData(ReadOnlyMemory<byte> receivedBuff)

tools/props/Versions.props

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<MicrosoftIdentityModelProtocolsOpenIdConnectVersion>6.35.0</MicrosoftIdentityModelProtocolsOpenIdConnectVersion>
3333
<MicrosoftIdentityModelJsonWebTokensVersion>6.35.0</MicrosoftIdentityModelJsonWebTokensVersion>
3434
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
35+
<SystemMemoryVersion>4.5.5</SystemMemoryVersion>
3536
<SystemTextEncodingsWebVersion>6.0.0</SystemTextEncodingsWebVersion>
3637
<MicrosoftSourceLinkGitHubVersion>1.1.0</MicrosoftSourceLinkGitHubVersion>
3738
</PropertyGroup>

0 commit comments

Comments
 (0)