.net 从代码隐藏访问AuthenticationService
我想从.net应用程序的代码后台调用AuthenticationService。这是内置的wcf表单身份验证服务 我该怎么做.net 从代码隐藏访问AuthenticationService,.net,forms-authentication,.net,Forms Authentication,我想从.net应用程序的代码后台调用AuthenticationService。这是内置的wcf表单身份验证服务 我该怎么做 我似乎不知道如何实例化它。您不能实例化AuthenticationService类 您可以这样初始化它: private readonly AuthenticationService authService=WebContext.Current.Authentication
我似乎不知道如何实例化它。您不能实例化AuthenticationService类 您可以这样初始化它: private readonly AuthenticationService authService=WebContext.Current.Authentication