Ejemplo 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)
                ));
 }
Ejemplo n.º 2
0
        public static GangAuthenticationCredential ToContract(
            this GangUserCredential source
            )
        {
            if (source == null)
            {
                return(null);
            }

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