1
我正在使用ASP.NET 5,我有問題SslStream
類在System.Security
命名空間?ASP.NET 5中沒有SslStream?
我確實有SslPolicyErrors
和SslProtocols
枚舉,我確實有NetworkStream
。我可以從TcpClient
中提取NetwokrStream
,但我不知道如何將它用作SSL(在測試版3中存在SslStream
對象)。
我正在使用ASP.NET 5,我有問題SslStream
類在System.Security
命名空間?ASP.NET 5中沒有SslStream?
我確實有SslPolicyErrors
和SslProtocols
枚舉,我確實有NetworkStream
。我可以從TcpClient
中提取NetwokrStream
,但我不知道如何將它用作SSL(在測試版3中存在SslStream
對象)。
請務必參考System.Net.Security
軟件包,因爲它是適用於.NET Core的SslStream
的地方:https://www.nuget.org/packages/System.Net.Security/4.0.0-beta-23516。
我使用System.Net.Security引用;我沒有訪問這個對象(dnxcore「version」:「1.0.0-rc1-update1」) - 我需要添加你提到的包嗎? –
是的,在frameworks \ dnxcore50 \ dependencies下添加'System.Net.Security'包。 – Pinpoint
感謝百萬人 - 奇怪的是,這並不包括在框中 –