private bool CheckAggregateKey(AggregatedKey key, DiagnosticsUpdatedArgs args) { if (key == null) { return(true); } if (args?.DocumentId == null || args?.Solution == null) { return(true); } var documents = GetDocumentsWithSameFilePath(args.Solution, args.DocumentId); return(key.DocumentIds == documents); }
private bool CheckAggregateKey(AggregatedKey key, DiagnosticsUpdatedArgs args) { if (key == null) { return(true); } if (args?.DocumentId == null || args?.Solution == null) { return(true); } var documents = args.Solution.GetRelatedDocumentIds(args.DocumentId); return(key.DocumentIds == documents); }