Exemplo n.º 1
0
 private static string OnUserNameNeeded()
 {
     if (UserNameNeeded != null)
     {
         var e = new UserNameNeededEventArgs();
         UserNameNeeded(null, e);
         return(e.UserName);
     }
     return(null);
 }
Exemplo n.º 2
0
 private void IdentServer_UserNameNeeded(object sender, UserNameNeededEventArgs e)
 {
     e.UserName = this.IdentUserName;
     IdentServer.UserNameNeeded -= IdentServer_UserNameNeeded;
 }