1 override of TryGetService
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Mocks\TestLspServices.cs (1)
55
public override bool
TryGetService
(Type type, [NotNullWhen(true)] out object? service)
2 references to TryGetService
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (2)
Mocks\TestLspServices.cs (2)
29
=>
TryGetService
(typeof(T), out var service) ? (T)service : default;
32
=>
TryGetService
(typeof(T), out var service) ? (T)service : throw new InvalidOperationException($"{typeof(T).Name} did not have a service");