3 implementations of INotificationService
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Utilities\TestNotificationService.vb (1)
9Implements INotificationService
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Notification\EditorNotificationServiceFactory.cs (1)
40private class EditorDialogService : INotificationService, INotificationServiceCallback
Microsoft.VisualStudio.LanguageServices (1)
Notification\VSNotificationServiceFactory.cs (1)
43private class VSDialogService : INotificationService, INotificationServiceCallback
89 references to INotificationService
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
EncapsulateField\EncapsulateFieldTestState.cs (1)
37var notificationService = Workspace.Services.GetService<INotificationService>() as INotificationServiceCallback;
ExtractMethod\MiscTests.cs (1)
135var callBackService = workspace.Services.GetService<INotificationService>() as INotificationServiceCallback;
Microsoft.CodeAnalysis.EditorFeatures (23)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (4)
109var notificationService = workspace.Services.GetRequiredService<INotificationService>(); 159private static void ShowError(ChangeSignatureFailureKind reason, IUIThreadOperationContext operationContext, INotificationService notificationService) 171static void ShowMessage(string errorMessage, NotificationSeverity severity, IUIThreadOperationContext operationContext, INotificationService notificationService)
CodeActions\CodeActionEditHandlerService.cs (1)
123workspace.Services.GetService<INotificationService>()?.SendNotification(
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (2)
103var notificationService = workspace.Services.GetRequiredService<INotificationService>();
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (2)
65var notificationService = workspace.Services.GetRequiredService<INotificationService>();
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
77(errorMessage, severity) => workspace.Services.GetService<INotificationService>().SendNotification(errorMessage, severity: severity),
ExtractMethod\ExtractMethodCommandHandler.cs (4)
161var notificationService = document.Project.Solution.Services.GetService<INotificationService>(); 240var notificationService = solution.Services.GetService<INotificationService>();
GoToDefinition\GoToDefinitionCommandHandler.cs (2)
160var notificationService = document.Project.Solution.Services.GetRequiredService<INotificationService>();
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (2)
134var notificationService = workspace.Services.GetService<INotificationService>();
InlineRename\InlineRenameSession.cs (2)
856var notificationService = _workspace.Services.GetService<INotificationService>();
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (3)
93_document.Project.Solution.Services.GetService<INotificationService>() 128var notificationService = workspace.Services.GetService<INotificationService>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Diagnostics\GenerateType\TestGenerateTypeOptionsService.cs (1)
48INotificationService notificationService,
ExtractInterface\TestExtractInterfaceOptions.cs (1)
46INotificationService notificationService,
Workspaces\TestWorkspace.cs (1)
98if (Services.GetService<INotificationService>() is INotificationServiceCallback callback)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (2)
Utilities\TestNotificationService.vb (2)
21Public Sub SendNotification(message As String, Optional title As String = Nothing, Optional severity As NotificationSeverity = NotificationSeverity.Warning) Implements INotificationService.SendNotification 27Public Function ConfirmMessageBox(message As String, Optional title As String = Nothing, Optional severity As NotificationSeverity = NotificationSeverity.Warning) As Boolean Implements INotificationService.ConfirmMessageBox
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTestState.cs (1)
98var notificationService = (INotificationServiceCallback)Workspace.Services.GetRequiredService<INotificationService>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineRename\CommandHandlers\RenameCommandHandler.cs (2)
112var notificationService = activeSession.Workspace.Services.GetService<INotificationService>();
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
343var notificationService = _model.Session.Workspace.Services.GetService<INotificationService>();
Notification\EditorNotificationServiceFactory.cs (1)
16[ExportWorkspaceServiceFactory(typeof(INotificationService), ServiceLayer.Editor)]
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Rename\InlineRenameTests.vb (1)
1292Dim notificationService = DirectCast(workspace.Services.GetService(Of INotificationService)(), INotificationServiceCallback)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Internal\Editor\FSharpNavigationBarItemService.cs (2)
80var notificationService = workspace.Services.GetRequiredService<INotificationService>();
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Internal\ExtractInterface\OmniSharpExtractInterfaceOptionsService.cs (1)
39INotificationService notificationService,
Microsoft.CodeAnalysis.Features (8)
ChangeSignature\ChangeSignatureCodeActionOperation.cs (2)
47var notificationService = workspace.Services.GetRequiredService<INotificationService>();
ExtractInterface\AbstractExtractInterfaceService.cs (2)
275var notificationService = document.Project.Solution.Services.GetService<INotificationService>();
ExtractInterface\IExtractInterfaceOptionsService.cs (1)
22INotificationService notificationService,
GenerateType\AbstractGenerateTypeService.CodeAction.cs (2)
105var notificationService = _document.Project.Solution.Services.GetService<INotificationService>();
GenerateType\IGenerateTypeOptionService.cs (1)
20INotificationService notificationService,
Microsoft.VisualStudio.LanguageServices (23)
CallHierarchy\CallHierarchyCommandHandler.cs (2)
117var notificationService = document.Project.Solution.Services.GetService<INotificationService>();
ChangeSignature\AddParameterDialogViewModel.cs (2)
19private readonly INotificationService? _notificationService; 28_notificationService = document.Project.Solution.Services.GetService<INotificationService>();
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
29private readonly INotificationService _notificationService; 64_notificationService = document.Project.Solution.Services.GetRequiredService<INotificationService>();
ExtractClass\ExtractClassViewModel.cs (2)
18private readonly INotificationService _notificationService; 23INotificationService notificationService,
ExtractClass\VisualStudioExtractClassOptionsService.cs (2)
54var notificationService = document.Project.Solution.Services.GetRequiredService<INotificationService>();
ExtractInterface\ExtractInterfaceDialogViewModel.cs (2)
25private readonly INotificationService _notificationService; 30INotificationService notificationService,
ExtractInterface\VisualStudioExtractInterfaceOptionsService.cs (1)
50INotificationService notificationService,
GenerateType\GenerateTypeDialogViewModel.cs (2)
30private readonly INotificationService _notificationService; 715INotificationService notificationService,
GenerateType\VisualStudioGenerateTypeOptionsServiceFactory.cs (1)
43INotificationService notificationService,
Notification\VSNotificationServiceFactory.cs (1)
19[ExportWorkspaceServiceFactory(typeof(INotificationService), ServiceLayer.Host), Shared]
Packaging\PackageInstallerServiceFactory.cs (4)
355var notificationService = Workspace.Services.GetService<INotificationService>(); 416var notificationService = Workspace.Services.GetService<INotificationService>();
Snippets\AbstractSnippetExpansionClient.cs (2)
1111var notificationService = workspace.Services.GetRequiredService<INotificationService>();
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Options\NamingStylesOptionPage.cs (2)
22private INotificationService _notificationService; 28_notificationService = workspace.Services.GetService<INotificationService>();
Microsoft.VisualStudio.LanguageServices.Implementation (13)
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (2)
40private readonly INotificationService _notificationService; 50internal NamingStyleOptionPageControl(OptionStore optionStore, INotificationService notificationService, string languageName)
Options\Style\NamingPreferences\NamingStyles\ManageNamingStylesDialogViewModel.cs (2)
18private readonly INotificationService _notificationService; 27INotificationService notificationService)
Options\Style\NamingPreferences\NamingStyles\NamingStyleViewModel.cs (2)
20private readonly INotificationService _notificationService; 22public NamingStyleViewModel(MutableNamingStyle style, bool canBeDeleted, INotificationService notificationService)
Options\Style\NamingPreferences\SymbolSpecification\ManageSymbolSpecificationsDialogViewModel.cs (2)
18private readonly INotificationService _notificationService; 29INotificationService notificationService)
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationViewModel.cs (3)
32private readonly INotificationService _notificationService; 37INotificationService notificationService) : this(languageName, CreateDefaultSymbolSpecification(), canBeDeleted, notificationService) { } 39public SymbolSpecificationViewModel(string languageName, SymbolSpecification specification, bool canBeDeleted, INotificationService notificationService)
SolutionExplorer\AnalyzersCommandHandler.cs (2)
653var notificationService = workspace.Services.GetService<INotificationService>();
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
CallHierarchy\CallHierarchyTestState.vb (1)
94Dim notificationService = DirectCast(workspace.Services.GetService(Of INotificationService)(), INotificationServiceCallback)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Options\NamingStylesOptionPage.vb (2)
19Private _notificationService As INotificationService 24_notificationService = workspace.Services.GetService(Of INotificationService)