public bool StartRegistration(string alias) { lock (Helpers.RegistrationLock) { // Check for existence of alias UserInfo U = new UserInfo(alias); if (U.Load()) { // Alias exists, can't start registration return false; } else { // Alias is unique, save a file to start the registration process base.FileName = U.FileName; lock (Helpers.PrivilegeLock) { this.Alias = alias; Save(); } return true; } } }
public bool StartRegistration(string alias) { lock (Globals.RegistrationLock) { // Check for existence of alias UserInfo U = new UserInfo(alias); if (U.Load()) { // Alias exists, can't start registration return false; } else { // Alias is unique, save a file to start the registration process base.FileName = U.FileName; lock (Globals.PrivilegeLock) { this.Alias = alias; Save(); } return true; } } }