Exemple #1
0
 public int Identity(FingerprintServer server)
 {
     if (this.InvokeRequired)
     {
         _Identity d = new _Identity(Identity);
         return((int)this.Invoke(d, new object[] { server }));
     }
     else
     {
         return(server.Match());
     }
 }
Exemple #2
0
 public User(string Name, string AuthenticationType, bool IsAuthenticated, IEnumerable<string> Roles)
 {
     _id = new _Identity(Name, AuthenticationType, IsAuthenticated);
     this.Roles = new List<string>(Roles);
 }