예제 #1
0
 public UsernameDto GetUsername(string username)
 {
     lock (Lock)
     {
         var query = new UsernameQuery(username);
         return _usernameQueryHandler.GetById(query);
     }
 }
예제 #2
0
 public bool SetUsername(UsernameDto username)
 {
     lock (Lock)
     {
         var query = new UsernameQuery(username.Name);
         return _usernameQueryHandler.SetById<UsernameDto>(query, username);
     }
 }