Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
FromClaim rename
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoK committed May 23, 2016
1 parent b20ad4c commit 8b945a9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public virtual Claim ToClaim()
return new Claim(ClaimType, ClaimValue);
}

public virtual void FromClaim(Claim other)
public virtual void InitializeFromClaim(Claim other)
{
ClaimType = other?.Type;
ClaimValue = other?.Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public virtual Claim ToClaim()
/// Reads the type and value from the Claim.
/// </summary>
/// <param name="claim"></param>
public virtual void FromClaim(Claim claim)
public virtual void InitializeFromClaim(Claim claim)
{
ClaimType = claim.Type;
ClaimValue = claim.Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected override IdentityUserRole<TKey> CreateUserRole(TUser user, TRole role)
protected override IdentityUserClaim<TKey> CreateUserClaim(TUser user, Claim claim)
{
var userClaim = new IdentityUserClaim<TKey> { UserId = user.Id };
userClaim.FromClaim(claim);
userClaim.InitializeFromClaim(claim);
return userClaim;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public override Claim ToClaim()
return new Claim(ClaimType, ClaimValue, null, Issuer);
}

public override void FromClaim(Claim other)
public override void InitializeFromClaim(Claim other)
{
ClaimValue = other.Value;
ClaimType = other.Type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public override Claim ToClaim()
return new Claim(ClaimType, ClaimValue, null, Issuer);
}

public override void FromClaim(Claim other)
public override void InitializeFromClaim(Claim other)
{
ClaimValue = other.Value;
ClaimType = other.Type;
Expand Down

0 comments on commit 8b945a9

Please sign in to comment.