public Claim GetOne(string issuerId, string subjectId, string scope, string type, bool meta = true) { var query = trustDBService.GetClaims(trustDBService.Claims, issuerId, subjectId, scope, type); query = trustDBService.GetActiveClaims(query); return(trustDBService.AddClaimMeta(query).FirstOrDefault()); }
public void LoadFromDatabase() { _logger.LogInformation("Loading trust into Graph"); var count = 0; // No need to load packages, just load trusts directly. var trusts = _trustDBService.GetActiveClaims(_trustDBService.Claims); foreach (var trust in trusts) { count++; _graphTrustService.Add(trust); } _logger.LogInformation($"Trust loaded: {count}"); }