Beispiel #1
0
 private ICollection PatchModification(ICollection completeListForSave)
 {
     foreach (object item in completeListForSave)
     {
         IClientId clientId = (item as IClientId);
         if (clientId != null)
         {
             clientId.ClientId = this.ClientId;
         }
     }
     return(completeListForSave);
 }
Beispiel #2
0
 public bool Equals(IClientId other)
 {
     return(other != null && (
                other.Guid.Equals(Guid) ||
                other.ExternalIp.Equals(ExternalIp)));
 }
Beispiel #3
0
 public bool Equals(IClientId other)
 {
     return(other != null && ClientId.Equals(other));
 }
Beispiel #4
0
 public Password(Guid guid, IPAddress ip, SecureString pass, AdminLevel level)
 {
     this.clientid = new ClientId(guid, ip);
     this.level    = level;
     this.sha1text = CreateSha1Text(pass);
 }
Beispiel #5
0
 internal Password(Guid guid, IPAddress ip, string sha1text, AdminLevel level)
 {
     this.clientid = new ClientId(guid, ip);
     this.level    = level;
     this.sha1text = sha1text;
 }
Beispiel #6
0
 public Password(IRecord record, AdminLevel level, SecureString pass)
 {
     this.clientid = record.ClientId;
     this.level    = level;
     this.sha1text = CreateSha1Text(pass);
 }
Beispiel #7
0
 internal Password(IClient client, string sha1text)
 {
     this.clientid = client.ClientId;
     this.level    = client.Admin;
     this.sha1text = sha1text;
 }