3 implementations of IDynamicFileInfoProvider
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorDynamicFileInfoProviderWrapper.cs (1)
17internal sealed class RazorDynamicFileInfoProviderWrapper : IDynamicFileInfoProvider
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestDynamicFileInfoProviderThatProducesFiles.cs (1)
20internal class TestDynamicFileInfoProviderThatProducesFiles : IDynamicFileInfoProvider
TestDynamicFileInfoProviderThatProducesNoFiles.cs (1)
20internal class TestDynamicFileInfoProviderThatProducesNoFiles : IDynamicFileInfoProvider
25 references to IDynamicFileInfoProvider
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
RazorDynamicFileInfo.cs (1)
13/// we acquire this from <see cref="IDynamicFileInfoProvider"/> exposed from external components such as razor for cshtml
RazorDynamicFileInfoProviderWrapper.cs (1)
16[Export(typeof(IDynamicFileInfoProvider))]
Microsoft.CodeAnalysis.Workspaces (17)
Workspace\Host\Mef\ExportDynamicFileInfoProviderAttribute.cs (3)
14/// Use this attribute to declare a <see cref="IDynamicFileInfoProvider"/> implementation for MEF 21/// file extensions this <see cref="IDynamicFileInfoProvider"/> can handle such as cshtml 28: base(typeof(IDynamicFileInfoProvider))
Workspace\Host\SourceFiles\DynamicFileInfo.cs (1)
11/// we acquire this from <see cref="IDynamicFileInfoProvider"/> exposed from external components such as razor for cshtml
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (6)
47/// The map of <see cref="DocumentId"/> to <see cref="IDynamicFileInfoProvider"/> whose <see cref="DynamicFileInfo"/> got added into <see cref="Workspace"/> 49private readonly Dictionary<DocumentId, IDynamicFileInfoProvider> _documentIdToDynamicFileInfoProvider = new(); 193public void AddDynamicFile_NoLock(IDynamicFileInfoProvider fileInfoProvider, DynamicFileInfo fileInfo, ImmutableArray<string> folders) 233public IDynamicFileInfoProvider RemoveDynamicFile_NoLock(string fullPath) 243!_documentIdToDynamicFileInfoProvider.TryGetValue(documentId, out var fileInfoProvider)) 464Contract.ThrowIfFalse(_documentIdToDynamicFileInfoProvider.TryGetValue(documentId, out var fileInfoProvider));
Workspace\ProjectSystem\ProjectSystemProject.cs (6)
110/// track whether we have been subscribed to <see cref="IDynamicFileInfoProvider.Updated"/> event 112private readonly HashSet<IDynamicFileInfoProvider> _eventSubscriptionTracker = new(); 120/// <see cref="IDynamicFileInfoProvider"/> provided a file for it, we will record the value as null so we still can track 754IDynamicFileInfoProvider? providerForFileInfo = null; 831IDynamicFileInfoProvider provider; 1270foreach (var provider in _eventSubscriptionTracker)
Workspace\ProjectSystem\ProjectSystemProjectHostInfo.cs (1)
14ImmutableArray<Lazy<IDynamicFileInfoProvider, FileExtensionsMetadata>> DynamicFileInfoProviders,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
TestDynamicFileInfoProviderThatProducesFiles.cs (1)
28event EventHandler<string> IDynamicFileInfoProvider.Updated { add { } remove { } }
TestDynamicFileInfoProviderThatProducesNoFiles.cs (1)
28event EventHandler<string> IDynamicFileInfoProvider.Updated { add { } remove { } }
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
WorkspaceTests\DynamicFileInfoProviderMefTests.cs (2)
47internal static Lazy<IDynamicFileInfoProvider, FileExtensionsMetadata> GetDynamicFileInfoProvider() 50return composition.ExportProviderFactory.CreateExportProvider().GetExport<IDynamicFileInfoProvider, FileExtensionsMetadata>();
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\VisualStudioProjectFactory.cs (2)
38private readonly ImmutableArray<Lazy<IDynamicFileInfoProvider, FileExtensionsMetadata>> _dynamicFileInfoProviders; 48[ImportMany] IEnumerable<Lazy<IDynamicFileInfoProvider, FileExtensionsMetadata>> fileInfoProviders,