开发者

NHibernate Detecting SSL

I'm testing support for encrypted connections from my client application to my SQL server using SSL. I've setup my test certificate and added "encrypt=true" to my connection string and everything开发者_JAVA技巧 is working fine.

If I connect to my SQL server using Management Studio I can view the connection properties and verify that yes, the connection is encrypted.

What I'm trying to figure out is where might a similar property be in NHibernate so that my application can detect that yes, the connection it's using is encrypted?

I've looked through an instance of an ISession object for any property that might indicate an encrypted connection but didn't find anything.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜