diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs index 2d49d15cda..679f5d32fc 100644 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs +++ b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs @@ -30,6 +30,24 @@ public SqlNotificationRequest(string userData, string options, int timeout) { } } namespace Microsoft.Data.SqlClient { + /// + public sealed class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider + { + /// + public ActiveDirectoryAuthenticationProvider() { } + /// + public ActiveDirectoryAuthenticationProvider(System.Func deviceCodeFlowCallbackMethod) { } + /// + public override System.Threading.Tasks.Task AcquireTokenAsync(SqlAuthenticationParameters parameters) { throw null; } + /// + public void SetDeviceCodeFlowCallback(System.Func deviceCodeFlowCallbackMethod) { } + /// + public override bool IsSupported(SqlAuthenticationMethod authentication) { throw null; } + /// + public override void BeforeLoad(SqlAuthenticationMethod authentication) { } + /// + public override void BeforeUnload(SqlAuthenticationMethod authentication) { } + } /// public enum ApplicationIntent { diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj index b1934599e6..661a54a500 100644 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj @@ -19,4 +19,7 @@ + + + \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs index 46a228facb..4081ed7707 100644 --- a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs +++ b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs @@ -35,6 +35,24 @@ public SqlNotificationRequest(string userData, string options, int timeout) { } namespace Microsoft.Data.SqlClient { + /// + public sealed class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider + { + /// + public ActiveDirectoryAuthenticationProvider() { } + /// + public ActiveDirectoryAuthenticationProvider(System.Func deviceCodeFlowCallbackMethod) { } + /// + public override System.Threading.Tasks.Task AcquireTokenAsync(SqlAuthenticationParameters parameters) { throw null; } + /// + public void SetDeviceCodeFlowCallback(System.Func deviceCodeFlowCallbackMethod) { } + /// + public override bool IsSupported(SqlAuthenticationMethod authentication) { throw null; } + /// + public override void BeforeLoad(SqlAuthenticationMethod authentication) { } + /// + public override void BeforeUnload(SqlAuthenticationMethod authentication) { } + } /// public enum ApplicationIntent { diff --git a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj index 4d5f63e325..fa07c461b8 100644 --- a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj @@ -15,4 +15,7 @@ + + + \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs index 8b43f79f83..6589f9a077 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs @@ -12,7 +12,7 @@ namespace Microsoft.Data.SqlClient { /// - public class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider + public sealed class ActiveDirectoryAuthenticationProvider : SqlAuthenticationProvider { private static readonly string s_defaultScopeSuffix = "/.default"; private readonly string _type = typeof(ActiveDirectoryAuthenticationProvider).Name;