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; }
Task IGangSessionUserStore .SetAsync(GangSessionUser value) { return(_store.SetAsync(value.Id, value)); }