Share via


NegotiateStream 및 SslStream은 연속 Begin 작업을 허용합니다.

보안 스트림의 오류 사례는 다르게 처리되며, BeginAuthenticateAsServer 또는 BeginAuthenticateAsClient에 대한 후속 호출이 더 이상 실패하지 않을 수 있습니다.

도입된 버전

5.0

변경 내용 설명

이전 .NET 버전에서는 먼저 EndAuthenticateAsServer 또는 EndAuthenticateAsClient를 호출하지 않고 BeginAuthenticateAsServer 또는 BeginAuthenticateAsClient를 연속적으로 호출하면 NotSupportedException이 됩니다. .NET 5부터는 BeginAuthenticateAsServer 또는 BeginAuthenticateAsClient에 대한 연속적인 호출이 더 이상 NotSupportedException을 생성하지 않습니다. 해당 API는 Task 기반 구현에서 지원되기 때문입니다.

변경 이유

내부 구현을 APM(비동기 프로그래밍 모델)에서 Task 기반으로 전환하면 성능이 향상되고 코드 복잡성도 줄어듭니다.

개발자는 아무 작업도 수행하지 않아도 됩니다.

영향을 받는 API