private void OnResolveUserJustOnce(object sender, ResolveUserEventArgs e) { m_UserResolutionRequests++; //all I have to do to lock in the user is get it.. var newUser = e.GetUser(); }
/// <summary> /// The application user being populated for the current user. /// </summary> /// <remarks>Update this user with the information available. If this method is called then /// the configured user will be stored as the definitive information for this user name.</remarks> public IApplicationUser GetUser() { if (m_ApplicationUser == null) { m_ApplicationUser = new Internal.ApplicationUser(m_WrappedEventArgs.GetUser()); } return(m_ApplicationUser); }
private void OnResolveUserForCurrentPrincipal(object sender, ResolveUserEventArgs e) { var identity = e.Principal.Identity; var newUser = e.GetUser(); newUser.Packet.Key = identity.Name; newUser.Packet.Organization = "Unit test"; newUser.Packet.EmailAddress = "*****@*****.**"; newUser.Packet.Phone = "443 738-0680"; newUser.Packet.Properties.Add("Customer Key", "1234-5678-90"); newUser.Packet.Properties.Add("License Check", null); }