C# WCF RIA SERVICES AuthenticationDomainService从用户类获取附加参数

C# WCF RIA SERVICES AuthenticationDomainService从用户类获取附加参数,c#,wcf-ria-services,C#,Wcf Ria Services,AuthenticationDomainService继承基类AuthenticationBase。在用户中,我添加了其他字段。我可以使用HttpContext.Current.user.Identity.name获取经过身份验证的用户的名称。我怎样才能得到我的额外财产?我不使用会员资格提供商。您可以通过WebContext.Current.User 希望这有帮助 //编辑: 在服务器端, YourDomainAuthenticationService.GetAuthenticatedUser(

AuthenticationDomainService继承基类AuthenticationBase。在用户中,我添加了其他字段。我可以使用HttpContext.Current.user.Identity.name获取经过身份验证的用户的名称。我怎样才能得到我的额外财产?我不使用会员资格提供商。

您可以通过
WebContext.Current.User

希望这有帮助

//编辑: 在服务器端,
YourDomainAuthenticationService.GetAuthenticatedUser(IPPrincipal principal)应返回您需要的内容。

是。它在客户端。我在哪里可以在服务器上得到这个?我只是在服务器上实现了一个方法,它从数据库中提供了这些信息。