开发者

In WCF how do I access the user the service is running as?

开发者 https://www.devze.com 2022-12-24 12:07 出处:网络
I have a WCF service hosted in IIS and want to gain access to the user the service runs as - not the caller. Is this possible?

I have a WCF service hosted in IIS and want to gain access to the user the service runs as - not the caller. Is this possible?

I know about the aspNetCompatibilityEnabled, but that gives me the user calling the service, not the user the servic开发者_开发知识库e is running under.


How about System.Environment.UserName?

0

精彩评论

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