Esempio n. 1
0
 public GangUserData SetCredential(
     GangUserCredential value)
 {
     return(new GangUserData(
                Id,
                Name, Email,
                Roles,
                Secret,
                LinkCode, Challenge,
                Credentials
                .RemoveAll(c => c.Id == value.Id)
                .Add(value)
                ));
 }
Esempio n. 2
0
        public static GangAuthenticationCredential ToContract(
            this GangUserCredential source
            )
        {
            if (source == null)
            {
                return(null);
            }

            return(new GangAuthenticationCredential(
                       source.Id,
                       source.Transports
                       ));
        }