Implemented interface member:
method
GetService
System.IServiceProvider.GetService(System.Type)
45 references to GetService
DesignSurfaceExt (6)
DesignSurfaceExt.cs (6)
26
IServiceContainer serviceProvider =
GetService
(typeof(IServiceContainer)) as IServiceContainer;
39
IServiceContainer serviceProvider =
GetService
(typeof(IServiceContainer)) as IServiceContainer;
52
IServiceContainer serviceProvider =
GetService
(typeof(IServiceContainer)) as IServiceContainer;
65
IServiceContainer serviceProvider =
GetService
(typeof(IServiceContainer)) as IServiceContainer;
225
public IDesignerHost GetIDesignerHost() => (IDesignerHost)
GetService
(typeof(IDesignerHost));
340
IMenuCommandService ims =
GetService
(typeof(IMenuCommandService)) as IMenuCommandService;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerEventService.cs (1)
43
host = surface.
GetService
(typeof(IDesignerHost)) as IDesignerHost;
System\ComponentModel\Design\DesignerHost.cs (1)
511
serviceInstance = base.GetService(service) ?? _surface?.
GetService
(service);
System\ComponentModel\Design\DesignSurface.cs (1)
421
return
GetService
(typeof(IExtenderProviderService))!;
System.Windows.Forms.Design.Tests (35)
System\ComponentModel\Design\DesignerHostTests.cs (12)
1074
Assert.Same(otherService, surface.
GetService
(typeof(object)));
1107
Assert.Same(otherService, surface.
GetService
(typeof(object)));
1137
Assert.Same(otherService, surface.
GetService
(typeof(object)));
1171
Assert.Same(otherService, surface.
GetService
(typeof(object)));
1209
Assert.Same(otherService, surface.
GetService
(typeof(object)));
1244
Assert.Same(otherService, surface.
GetService
(typeof(object)));
1734
Assert.Same(service, surface.
GetService
(typeof(object)));
1748
Assert.Same(service, surface.
GetService
(typeof(object)));
1762
Assert.Same(service, surface.
GetService
(typeof(object)));
1777
Assert.Same(service, surface.
GetService
(typeof(object)));
2893
Assert.Null(surface.
GetService
(typeof(object)));
2907
Assert.Null(surface.
GetService
(typeof(object)));
System\ComponentModel\Design\DesignSurfaceTests.cs (16)
623
IExtenderListService defaultProviderService = (IExtenderListService)surface.
GetService
(typeof(IExtenderListService));
662
IExtenderListService defaultProviderService = (IExtenderListService)surface.
GetService
(typeof(IExtenderListService));
707
IExtenderListService defaultProviderService = (IExtenderListService)surface.
GetService
(typeof(IExtenderListService));
1480
Assert.Same(service, surface.
GetService
(typeof(int)));
1488
ISelectionService service = Assert.IsAssignableFrom<ISelectionService>(surface.
GetService
(typeof(ISelectionService)));
1497
Assert.IsAssignableFrom<IExtenderProviderService>(surface.
GetService
(typeof(IExtenderProviderService)));
1504
Assert.IsAssignableFrom<IExtenderListService>(surface.
GetService
(typeof(IExtenderListService)));
1505
Assert.IsAssignableFrom<IExtenderProviderService>(surface.
GetService
(typeof(IExtenderListService)));
1512
Assert.IsAssignableFrom<ITypeDescriptorFilterService>(surface.
GetService
(typeof(ITypeDescriptorFilterService)));
1519
Assert.IsAssignableFrom<IReferenceService>(surface.
GetService
(typeof(IReferenceService)));
1526
Assert.Same(surface, surface.
GetService
(typeof(DesignSurface)));
1533
Assert.Same(surface.ServiceContainer, surface.
GetService
(surface.ServiceContainer.GetType()));
1542
Assert.Same(surface.ServiceContainer, surface.
GetService
(serviceType));
1550
Assert.Same(surface.Host, surface.
GetService
(serviceType));
1557
Assert.Null(surface.
GetService
(typeof(int)));
1566
Assert.Null(surface.
GetService
(serviceType));
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (7)
16
object service = surface.
GetService
(typeof(IExtenderListService));
25
object service = surface.
GetService
(typeof(IExtenderListService));
43
object service = surface.
GetService
(typeof(IExtenderListService));
52
object service = surface.
GetService
(typeof(IExtenderListService));
65
object service = surface.
GetService
(typeof(IExtenderListService));
90
object service = surface.
GetService
(typeof(IExtenderListService));
102
object service = surface.
GetService
(typeof(IExtenderListService));
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
62
var designerHost = (IDesignerHost)designSurface.
GetService
(typeof(IDesignerHost))!;