8 references to TryGetService
Microsoft.VisualStudio.LanguageServices (8)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
249
|| !_serviceProvider.
TryGetService
<SVsShell, IVsShell>(_threadingContext.JoinableTaskFactory, out var shell))
EditorConfigSettings\SettingsEditorFactory.cs (1)
107
if (_vsServiceProvider.
TryGetService
<SLocalRegistry, ILocalRegistry>(_threadingContext.JoinableTaskFactory, out var localRegistry))
EditorConfigSettings\SettingsEditorPane.cs (6)
71
if (_componentId == default && this.
TryGetService
<SOleComponentManager, IOleComponentManager>(_threadingContext.JoinableTaskFactory, out var componentManager))
88
if (this.
TryGetService
<SOleUndoManager, IOleUndoManager>(_threadingContext.JoinableTaskFactory, out _undoManager))
205
if (this.
TryGetService
<SVsUIShellOpenDocument, IVsUIShellOpenDocument>(_threadingContext.JoinableTaskFactory, out var uishellOpenDocument) &&
206
this.
TryGetService
<SVsWindowFrame, IVsWindowFrame>(_threadingContext.JoinableTaskFactory, out var windowFrameOrig))
253
if (this.
TryGetService
<SOleComponentManager, IOleComponentManager>(_threadingContext.JoinableTaskFactory, out var componentManager))
281
if (this.
TryGetService
<SVsTextManager, IVsTextManager>(_threadingContext.JoinableTaskFactory, out var textManager))