验证代码如下:
IAuthenticationProvider authenticationProvider = AuthenticationFactory.GetAuthenticationProvider();
IIdentity identity;
NamePasswordCredential credentials = new NamePasswordCredential(username, password);
bool authenticated = authenticationProvider.Authenticate(credentials, out identity);当然前提是我已经用Configuration Tools设置好了数据连接等数据项之后了,没错,验证可以通过.而我也知道它是通过使用存储过程GetPassword去验证的.但问题是.我只在Security.Database里的UserRoleManager.cs才发现了它使用了存储过程"GetPassword".但我却没办法发现上面的
authenticationProvider.Authenticate(credentials, out identity);
是在哪里调用了那边的东西.源代码看了一天都看不懂.请各位有研究过Enterprise Library的朋友们指示指示.谢谢.