private async Task EnsureProps() { if (_props == null) { _props = await _customPropsResolver.GetProfileProps(); } }
public Task <UserPropertySet> GetProfileProps() { foreach (var s in container.PropertySets) { if (s.TenantId == currentSite.Id.ToString()) { return(Task.FromResult(s)); } } foreach (var s in container.PropertySets) { if (s.TenantId == "*") { return(Task.FromResult(s)); } } var result = new UserPropertySet(); return(Task.FromResult(result)); }