コード例 #1
0
 private UserCredentials CopyCredentials(UserCredentials from)
 {
     Mapper.CreateMap<UserCredentials, UserCredentials>();
     return Mapper.Map<UserCredentials>(from);
 }
コード例 #2
0
 public void SaveUserCredentials(UserCredentials credentials)
 {
     credentialStore[credentials.Username.ToLower()] = CopyCredentials(credentials);
     File.AppendAllText(backupFileLocation, credentials.Username + "\t" + credentials.PasswordValidationString + "\r\n");
 }