Skip to content

Commit 64c2e18

Browse files
[release/8.0-staging] Don't expose TrustedCertificatesDirectory() and StartNewTlsSessionContext() to NetFx (#115008)
1 parent f9239a1 commit 64c2e18

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,10 @@ public partial class LdapSessionOptions
382382
internal LdapSessionOptions() { }
383383
public bool AutoReconnect { get { throw null; } set { } }
384384
public string DomainName { get { throw null; } set { } }
385+
#if NET
385386
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
386387
public string TrustedCertificatesDirectory { get { throw null; } set { } }
388+
#endif
387389
public string HostName { get { throw null; } set { } }
388390
public bool HostReachable { get { throw null; } }
389391
public System.DirectoryServices.Protocols.LocatorFlags LocatorFlag { get { throw null; } set { } }
@@ -404,8 +406,10 @@ internal LdapSessionOptions() { }
404406
public bool Signing { get { throw null; } set { } }
405407
public System.DirectoryServices.Protocols.SecurityPackageContextConnectionInformation SslInformation { get { throw null; } }
406408
public int SspiFlag { get { throw null; } set { } }
409+
#if NET
407410
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")]
408411
public void StartNewTlsSessionContext() { }
412+
#endif
409413
public bool TcpKeepAlive { get { throw null; } set { } }
410414
public System.DirectoryServices.Protocols.VerifyServerCertificateCallback VerifyServerCertificate { get { throw null; } set { } }
411415
public void FastConcurrentBind() { }

src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
66
<IsPackable>true</IsPackable>
7-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
8-
<ServicingVersion>1</ServicingVersion>
7+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8+
<ServicingVersion>2</ServicingVersion>
99
<AddNETFrameworkPlaceholderFileToPackage>true</AddNETFrameworkPlaceholderFileToPackage>
1010
<AddNETFrameworkAssemblyReferenceToPackage>true</AddNETFrameworkAssemblyReferenceToPackage>
1111
<PackageDescription>Provides the methods defined in the Lightweight Directory Access Protocol (LDAP) version 3 (V3) and Directory Services Markup Language (DSML) version 2.0 (V2) standards.</PackageDescription>

0 commit comments

Comments
 (0)