protected override void OnGetState(Csla.Serialization.Mobile.SerializationInfo info, StateMode mode)
 {
   info.AddValue("_username", _username);
   info.AddValue("_password", _password);
   info.AddValue("_roles", _roles);
   base.OnGetState(info, mode);
 }
 protected override void OnGetState(Csla.Serialization.Mobile.SerializationInfo info, Csla.Core.StateMode mode)
 {
   info.AddValue("SilverlightPrincipal.Criteria.Name", Name);
   info.AddValue("SilverlightPrincipal.Criteria.Password", Password);
   info.AddValue("SilverlightPrincipal.Criteria.ProviderType", ProviderType);
   base.OnGetState(info, mode);
 }
Beispiel #3
0
 /// <summary>
 /// Override this method to get custom field values
 /// from the serialization stream.
 /// </summary>
 /// <param name="info">Serialization info.</param>
 /// <param name="mode">Serialization mode.</param>
 protected override void OnGetState(Csla.Serialization.Mobile.SerializationInfo info, Csla.Core.StateMode mode)
 {
     info.AddValue("CslaPrincipal.Identity", MobileFormatter.Serialize(_identity));
       base.OnGetState(info, mode);
 }