Ejemplo n.º 1
0
 /// <summary>
 /// Creates new instance.
 /// </summary>
 /// <param name="profile">User profile.</param>
 /// <param name="state">State.</param>
 /// <param name="oldState">Old state.</param>
 /// <param name="failReason">Fail reason.</param>
 /// <param name="requiredInfo">Required info.</param>
 public UserEventArgs(IUserProfile profile,
                      LoginState state,
                      LoginState oldState        = LoginState.LoggedOut,
                      LoginResult failReason     = LoginResult.Sucess,
                      UserInfoTypes requiredInfo = UserInfoTypes.None)
 {
     UserProfile             = profile;
     State                   = state;
     OldState                = oldState;
     FailReason              = failReason;
     RequiredUserInformation = requiredInfo;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates new instance.
 /// </summary>
 /// <param name="result">Result.</param>
 /// <param name="identity">Identity.</param>
 /// <param name="requiredInfo">Required user info flags.</param>
 public AuthResult(LoginResult result, IUserIdentity identity, UserInfoTypes requiredInfo)
 {
     Identity     = identity;
     Result       = result;
     RequiredInfo = requiredInfo;
 }
Ejemplo n.º 3
0
 public AuthResult(LoginResult result,IUserIdentity identity, UserInfoTypes requiredInfo)
 {
     this.Identity = identity;
     this.Result = result;
     this.RequiredInfo = requiredInfo;
 }
Ejemplo n.º 4
0
 public UserEventArgs(IUserProfile profile,
     LoginState state,
     LoginState oldState = LoginState.LoggedOut,
     LoginResult failReason = LoginResult.Sucess,
     UserInfoTypes requiredInfo = UserInfoTypes.None)
 {
     this.UserProfile = profile;
     this.State = state;
     this.OldState = oldState;
     this.FailReason = failReason;
     this.RequiredUserInformation = requiredInfo;
 }