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);
            }
Пример #2
0
            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);
            }