Пример #1
0
 private static string OnUserNameNeeded()
 {
     if (UserNameNeeded != null)
     {
         var e = new UserNameNeededEventArgs();
         UserNameNeeded(null, e);
         return(e.UserName);
     }
     return(null);
 }
Пример #2
0
 private void IdentServer_UserNameNeeded(object sender, UserNameNeededEventArgs e)
 {
     e.UserName = this.IdentUserName;
     IdentServer.UserNameNeeded -= IdentServer_UserNameNeeded;
 }