Exemplo n.º 1
0
 public static void LoginUsingCSLA(EventHandler <DataPortalResult <SilverlightPrincipal> > completed)
 {
     CslaIdentity.GetCslaIdentity <SilverlightIdentity>(
         (o, e) =>
         OnGetIdentityComplete(e, completed), new Criteria(VALID_TEST_UID, VALID_TEST_PWD));
 }
        public static void LoginUsingCSLA(string name, string password)
        {
            var identity = CslaIdentity.GetCslaIdentity <SilverlightIdentity>(new Criteria(name, password));

            SetPrincipal(identity);
        }