Implemented interface member:
method
GetService
System.IServiceProvider.GetService(System.Type)
30 references to GetService
Aspire.Hosting.Tests (1)
Utils\TestServiceProvider.cs (1)
21
return _serviceContainer.
GetService
(serviceType);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignSurface.cs (1)
388
return _serviceContainer?.
GetService
(serviceType);
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
302
public object? GetService(Type serviceType) => _serviceContainer?.
GetService
(serviceType);
System\ComponentModel\Design\SiteNestedContainer.cs (1)
107
return _services.
GetService
(serviceType);
System.Windows.Forms.Design.Tests (26)
System\ComponentModel\Design\DesignerHostTests.cs (8)
1108
Assert.Same(service, otherContainer.
GetService
(typeof(object)));
1210
Assert.Same(service, otherContainer.
GetService
(typeof(object)));
1733
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
1747
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
1761
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
1776
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
2892
Assert.Null(surface.ServiceContainer.
GetService
(typeof(object)));
2906
Assert.Null(surface.ServiceContainer.
GetService
(typeof(object)));
System\ComponentModel\Design\DesignSurfaceTests.cs (18)
216
ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(container.
GetService
(typeof(ISelectionService)));
226
Assert.IsAssignableFrom<IExtenderProviderService>(container.
GetService
(typeof(IExtenderProviderService)));
234
Assert.IsAssignableFrom<IExtenderListService>(container.
GetService
(typeof(IExtenderListService)));
235
Assert.IsAssignableFrom<IExtenderProviderService>(container.
GetService
(typeof(IExtenderListService)));
243
Assert.IsAssignableFrom<ITypeDescriptorFilterService>(container.
GetService
(typeof(ITypeDescriptorFilterService)));
251
Assert.IsAssignableFrom<IReferenceService>(container.
GetService
(typeof(IReferenceService)));
259
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
267
Assert.Same(container, container.
GetService
(container.GetType()));
284
Assert.Same(surface.Host, container.
GetService
(serviceType));
307
Assert.NotNull(container.
GetService
(serviceType));
309
Assert.Null(container.
GetService
(serviceType));
313
Assert.Null(container.
GetService
(serviceType));
1180
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
1183
Assert.Null(container.
GetService
(typeof(DesignSurface)));
1271
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
1274
Assert.Null(container.
GetService
(typeof(DesignSurface)));
1282
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
1285
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));