private void DataPortal_Fetch(MembershipIdentity.Criteria criteria) { MembershipIdentity target = GetIdentityOnServer(criteria); IsAuthenticated = target.IsAuthenticated; Name = target.Name; Roles = target.Roles; AuthenticationType = "YYT"; }
private MembershipIdentity GetIdentity(Type identityType, IdentityFactory identity) { MembershipIdentity returnValue = (MembershipIdentity)Activator.CreateInstance(identityType); returnValue.IsAuthenticated = identity.IsAuthenticated; returnValue.Name = identity.Name; returnValue.Roles = identity.Roles; returnValue.AuthenticationType = "YYT"; return(returnValue); }