9using System.Security.Principal;
11using System.Security.Claims;
12using System.Collections.Generic;
26 : base(new ClaimsIdentity())
34 : base(principal.Identities)
45 var baseidentity = (ClaimsIdentity)base.Identity;
46 if (identity.
Roles !=
null)
47 foreach (var item
in identity.Roles)
48 baseidentity.AddClaim(
new Claim(
"http://schemas.microsoft.com/ws/2008/06/identity/claims/role", item));
91 protected CslaClaimsPrincipal(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
ClaimsPrincipal subclass that supports serialization by SerializationFormatterFactory....
CslaClaimsPrincipal(IPrincipal principal)
Creates an instance of the object based on an existing principal object.
CslaClaimsPrincipal(System.IO.BinaryReader reader)
Creates an instance of the object from a binary stream.
CslaClaimsPrincipal(IEnumerable< ClaimsIdentity > identities)
Creates an instance of the object.
CslaClaimsPrincipal(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Creates an instance of the object from BinaryFormatter or NDCS deserialization.
CslaClaimsPrincipal(IIdentity identity)
Creates an instance of the object.
CslaClaimsPrincipal()
Creates an instance of the object.
CslaClaimsPrincipal(ICslaIdentity identity)
Creates an instance of the object, initializing a role claim for each role in the identity's Roles co...
CslaClaimsPrincipal(ClaimsPrincipal principal)
Creates an instance of the object.
Object containing the serialization data for a specific object.
Provides a base type to simplify creation of a .NET identity object for use with ICslaPrincipal.
MobileList< string > Roles
Gets the list of roles for this user.
Defines the base requirements for the interface of any CSLA principal object.
Interface to be implemented by any object that supports serialization by the SerializationFormatterFa...
void GetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should serialize its child references.
void GetState(SerializationInfo info)
Method called by MobileFormatter when an object should serialize its data.
void SetChildren(SerializationInfo info, MobileFormatter formatter)
Method called by MobileFormatter when an object should deserialize its child references.
void SetState(SerializationInfo info)
Method called by MobileFormatter when an object should be deserialized.
@ Serializable
Prevents updating or inserting until the transaction is complete.