2 implementations of INotificationService
Microsoft.CodeAnalysis.EditorFeatures (1)
Notification\EditorNotificationServiceFactory.cs (1)
40private sealed class EditorDialogService : INotificationService, INotificationServiceCallback
Microsoft.VisualStudio.LanguageServices (1)
Notification\VSNotificationServiceFactory.cs (1)
41private sealed class VSDialogService : INotificationService, INotificationServiceCallback
62 references to INotificationService
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
EncapsulateField\EncapsulateFieldTestState.cs (1)
37var notificationService = Workspace.Services.GetService<INotificationService>() as INotificationServiceCallback;
ExtractMethod\ExtractMethodMiscellaneousTests.cs (1)
131var callBackService = (INotificationServiceCallback)workspace.Services.GetRequiredService<INotificationService>();
Microsoft.CodeAnalysis.EditorFeatures (24)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (4)
99var notificationService = workspace.Services.GetRequiredService<INotificationService>(); 149private static void ShowError(ChangeSignatureFailureKind reason, IUIThreadOperationContext operationContext, INotificationService notificationService) 161static void ShowMessage(string errorMessage, NotificationSeverity severity, IUIThreadOperationContext operationContext, INotificationService notificationService)
CodeActions\CodeActionEditHandlerService.cs (1)
113workspace.Services.GetService<INotificationService>()?.SendNotification(
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (2)
90var notificationService = workspace.Services.GetRequiredService<INotificationService>();
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (2)
65var notificationService = workspace.Services.GetRequiredService<INotificationService>();
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
71(errorMessage, severity) => workspace.Services.GetService<INotificationService>().SendNotification(errorMessage, severity: severity),
ExtractMethod\ExtractMethodCommandHandler.cs (2)
225var notificationService = document.Project.Solution.Services.GetService<INotificationService>();
GoToDefinition\GoToDefinitionCommandHandler.cs (2)
144var notificationService = document.Project.Solution.Services.GetRequiredService<INotificationService>();
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (2)
140var notificationService = workspace.Services.GetService<INotificationService>();
InlineRename\CommandHandlers\RenameCommandHandler.cs (2)
81var notificationService = activeSession.Workspace.Services.GetService<INotificationService>();
InlineRename\InlineRenameSession.cs (2)
852var notificationService = Workspace.Services.GetService<INotificationService>();
Notification\EditorNotificationServiceFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(INotificationService), ServiceLayer.Editor)]
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (3)
94_document.Project.Solution.Services.GetService<INotificationService>() 123var notificationService = workspace.Services.GetService<INotificationService>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Diagnostics\GenerateType\TestGenerateTypeOptionsService.cs (1)
48INotificationService notificationService,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTestState.cs (1)
93var notificationService = (INotificationServiceCallback)Workspace.Services.GetRequiredService<INotificationService>();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Internal\Editor\FSharpNavigationBarItemService.cs (2)
81var notificationService = workspace.Services.GetRequiredService<INotificationService>();
Microsoft.CodeAnalysis.Features (5)
ChangeSignature\ChangeSignatureCodeActionOperation.cs (2)
40var notificationService = workspace.Services.GetRequiredService<INotificationService>();
GenerateType\AbstractGenerateTypeService.CodeAction.cs (2)
102var notificationService = _document.Project.Solution.Services.GetService<INotificationService>();
GenerateType\IGenerateTypeOptionService.cs (1)
18INotificationService? notificationService,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
91if (Services.GetService<INotificationService>() is INotificationServiceCallback callback)
Microsoft.VisualStudio.LanguageServices (24)
CallHierarchy\CallHierarchyCommandHandler.cs (2)
98var notificationService = document.Project.Solution.Services.GetRequiredService<INotificationService>();
ChangeSignature\AddParameterDialogViewModel.cs (2)
17private readonly INotificationService? _notificationService; 25_notificationService = document.Project.Solution.Services.GetService<INotificationService>();
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
28private readonly INotificationService _notificationService; 62_notificationService = document.Project.Solution.Services.GetRequiredService<INotificationService>();
ExtractClass\ExtractClassViewModel.cs (2)
18private readonly INotificationService _notificationService; 23INotificationService notificationService,
ExtractClass\VisualStudioExtractClassOptionsService.cs (2)
52var notificationService = solution.Services.GetRequiredService<INotificationService>();
ExtractInterface\ExtractInterfaceDialogViewModel.cs (2)
20private readonly INotificationService _notificationService; 25INotificationService notificationService,
ExtractInterface\VisualStudioExtractInterfaceOptionsService.cs (2)
48var notificationService = solution.Services.GetRequiredService<INotificationService>();
GenerateType\GenerateTypeDialogViewModel.cs (2)
27private readonly INotificationService _notificationService; 672INotificationService notificationService,
GenerateType\VisualStudioGenerateTypeOptionsServiceFactory.cs (1)
41INotificationService notificationService,
Notification\VSNotificationServiceFactory.cs (1)
17[ExportWorkspaceServiceFactory(typeof(INotificationService), ServiceLayer.Host), Shared]
Packaging\PackageInstallerServiceFactory.cs (4)
354var notificationService = Workspace.Services.GetService<INotificationService>(); 415var notificationService = Workspace.Services.GetService<INotificationService>();
Snippets\SnippetExpansionClient.cs (2)
1112var notificationService = workspace.Services.GetRequiredService<INotificationService>();
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Options\NamingStylesOptionPage.cs (2)
22private INotificationService _notificationService; 28_notificationService = workspace.Services.GetService<INotificationService>();