roadie/RoadieLibrary/Identity/ApplicationUserPartial.cs
2018-11-16 20:14:32 -06:00

35 lines
731 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Roadie.Library.Identity
{
public partial class ApplicationUser
{
public static string CacheRegionUrn(Guid Id)
{
return string.Format("urn:user:{0}", Id);
}
public static string CacheUrn(Guid Id)
{
return $"urn:user_by_id:{ Id }";
}
public string CacheRegion
{
get
{
return ApplicationUser.CacheRegionUrn(this.RoadieId);
}
}
public string CacheKey
{
get
{
return ApplicationUser.CacheUrn(this.RoadieId);
}
}
}
}