示例#1
0
 public GangSession(
     GangSessionUser user,
     IEnumerable <string> roles,
     string token)
 {
     User  = user ?? throw new System.ArgumentNullException(nameof(user));
     Roles = roles?.ToImmutableSortedSet()
             ?? ImmutableSortedSet <string> .Empty;
     Token = token;
 }
示例#2
0
 Task IGangSessionUserStore
 .SetAsync(GangSessionUser value)
 {
     return(_store.SetAsync(value.Id, value));
 }