public static int AsyncUserPassword(string userName, string password) { DiscuzSession ds = DiscuzSessionHelper.GetMainSiteSession(); User userInfo = new User(); userInfo.UserName = userName; UserForEditing userForEditing = new UserForEditing(); userForEditing.Password = password; List<AsyncSiteInfo> asyncSiteList = AsyncSites.GetAsyncSiteList(); int successCount = 0; foreach (AsyncSiteInfo info in asyncSiteList) { if (!new ProcessUpdateUser(userInfo, info, userForEditing).Enqueue()) successCount++; } return successCount; }
public ProcessRegister(User userInfo, AsyncSiteInfo asyncSiteInfo) { this._siteInfo = asyncSiteInfo; this._userInfo = userInfo; }
public ProcessUpdateUser(User userInfo, AsyncSiteInfo asyncSiteInfo, UserForEditing userForEditing) { this._userInfo = userInfo; this._siteInfo = asyncSiteInfo; this._userForEditing = userForEditing; }