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()); } }
public User(string Name, string AuthenticationType, bool IsAuthenticated, IEnumerable<string> Roles) { _id = new _Identity(Name, AuthenticationType, IsAuthenticated); this.Roles = new List<string>(Roles); }