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)
1106
Assert.Same(service, otherContainer.
GetService
(typeof(object)));
1208
Assert.Same(service, otherContainer.
GetService
(typeof(object)));
1731
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
1745
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
1759
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
1774
Assert.Same(service, surface.ServiceContainer.
GetService
(typeof(object)));
2890
Assert.Null(surface.ServiceContainer.
GetService
(typeof(object)));
2904
Assert.Null(surface.ServiceContainer.
GetService
(typeof(object)));
System\ComponentModel\Design\DesignSurfaceTests.cs (18)
214
ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(container.
GetService
(typeof(ISelectionService)));
224
Assert.IsAssignableFrom<IExtenderProviderService>(container.
GetService
(typeof(IExtenderProviderService)));
232
Assert.IsAssignableFrom<IExtenderListService>(container.
GetService
(typeof(IExtenderListService)));
233
Assert.IsAssignableFrom<IExtenderProviderService>(container.
GetService
(typeof(IExtenderListService)));
241
Assert.IsAssignableFrom<ITypeDescriptorFilterService>(container.
GetService
(typeof(ITypeDescriptorFilterService)));
249
Assert.IsAssignableFrom<IReferenceService>(container.
GetService
(typeof(IReferenceService)));
257
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
265
Assert.Same(container, container.
GetService
(container.GetType()));
282
Assert.Same(surface.Host, container.
GetService
(serviceType));
305
Assert.NotNull(container.
GetService
(serviceType));
307
Assert.Null(container.
GetService
(serviceType));
311
Assert.Null(container.
GetService
(serviceType));
1178
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
1181
Assert.Null(container.
GetService
(typeof(DesignSurface)));
1269
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
1272
Assert.Null(container.
GetService
(typeof(DesignSurface)));
1280
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));
1283
Assert.Same(surface, container.
GetService
(typeof(DesignSurface)));