1 implementation of IExtenderProviderService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ExtenderProviderService.cs (1)
11internal sealed class ExtenderProviderService : IExtenderProviderService, IExtenderListService
127 references to IExtenderProviderService
netstandard (1)
netstandard.cs (1)
261[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IExtenderProviderService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
247[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IExtenderProviderService))]
System.Windows.Forms.Design (23)
System\ComponentModel\Design\DesignerHost.cs (3)
235&& this.TryGetService(out IExtenderProviderService? eps)) 321if (loader is IExtenderProvider extenderProvider && this.TryGetService(out IExtenderProviderService? eps)) 646if (component is IExtenderProvider extenderComponent && this.TryGetService(out IExtenderProviderService? eps))
System\ComponentModel\Design\DesignSurface.cs (3)
39ServiceContainer.AddService<IExtenderProviderService>(callback); 414if (serviceType == typeof(IExtenderProviderService)) 421return GetService(typeof(IExtenderProviderService))!;
System\ComponentModel\Design\ExtenderProviderService.cs (2)
28void IExtenderProviderService.AddExtenderProvider(IExtenderProvider provider) 45void IExtenderProviderService.RemoveExtenderProvider(IExtenderProvider provider)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
38private IExtenderProviderService? _extenderProviderService;
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (3)
18private IExtenderProviderService _providerService; 75_providerService = provider.GetService<IExtenderProviderService>() 76?? throw new NotSupportedException(string.Format(SR.LocalizationProviderMissingService, nameof(IExtenderProviderService)));
System\Windows\Forms\Design\ComponentTray.cs (6)
86IExtenderProviderService es = (IExtenderProviderService)GetService(typeof(IExtenderProviderService)); 857IExtenderProviderService es = (IExtenderProviderService)GetService(typeof(IExtenderProviderService));
System\Windows\Forms\Design\DesignerExtenders.cs (2)
16private IExtenderProviderService? _extenderService; 21public DesignerExtenders(IExtenderProviderService ex)
System\Windows\Forms\Design\DocumentDesigner.cs (3)
683IExtenderProviderService exps = (IExtenderProviderService)GetService(typeof(IExtenderProviderService));
System.Windows.Forms.Design.Tests (102)
System\ComponentModel\Design\DesignerHostTests.cs (32)
400Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 420.Setup(p => p.GetService(typeof(IExtenderProviderService))) 425surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 431mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedCallCount)); 438mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedCallCount)); 445mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedCallCount)); 471Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 491.Setup(p => p.GetService(typeof(IExtenderProviderService))) 501mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 508mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 515mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 537.Setup(p => p.GetService(typeof(IExtenderProviderService))) 556.Setup(p => p.GetService(typeof(IExtenderProviderService))) 567surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 573mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 586mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 2591Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 2611.Setup(p => p.GetService(typeof(IExtenderProviderService))) 2616surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 2622mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedAddCallCount)); 2628mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedAddCallCount + expectedRemoveCallCount)); 2635mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedAddCallCount + expectedRemoveCallCount)); 2661Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 2681.Setup(p => p.GetService(typeof(IExtenderProviderService))) 2691mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 2698mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 2705mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 2714surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 2720mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 2724mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(2)); 2737mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 2741mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never());
System\ComponentModel\Design\DesignSurfaceTests.cs (20)
224Assert.IsAssignableFrom<IExtenderProviderService>(container.GetService(typeof(IExtenderProviderService))); 233Assert.IsAssignableFrom<IExtenderProviderService>(container.GetService(typeof(IExtenderListService))); 296[InlineData(typeof(IExtenderProviderService))] 610Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 613.Setup(p => p.GetService(typeof(IExtenderProviderService))) 631mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 638mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 646Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 652.Setup(p => p.GetService(typeof(IExtenderProviderService))) 661surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 671mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 679mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 697.Setup(p => p.GetService(typeof(IExtenderProviderService))) 706surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 716mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 723mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 1495Assert.IsAssignableFrom<IExtenderProviderService>(surface.GetService(typeof(IExtenderProviderService))); 1503Assert.IsAssignableFrom<IExtenderProviderService>(surface.GetService(typeof(IExtenderListService)));
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (12)
25IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 42IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 52IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 65IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 90IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service); 101IExtenderProviderService providerService = Assert.IsAssignableFrom<IExtenderProviderService>(service);
System\ComponentModel\Design\SiteNestedContainerTests.cs (32)
304Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 327.Setup(p => p.GetService(typeof(IExtenderProviderService))) 332surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 340mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedCallCount)); 347mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedCallCount * 2 + 1)); 354mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedCallCount * 3 + 1)); 380Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 400.Setup(p => p.GetService(typeof(IExtenderProviderService))) 411mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 428mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 443mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 459.Setup(p => p.GetService(typeof(IExtenderProviderService))) 472.Setup(p => p.GetService(typeof(IExtenderProviderService))) 483surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 490mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 504mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 727Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 741.Setup(p => p.GetService(typeof(IExtenderProviderService))) 746surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 753mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedAddCallCount)); 759mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedAddCallCount + expectedRemoveCallCount)); 766mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(expectedAddCallCount + expectedRemoveCallCount)); 792Mock<IExtenderProviderService> mockExtenderProviderService = new(MockBehavior.Strict); 806.Setup(p => p.GetService(typeof(IExtenderProviderService))) 817mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 824mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 831mockServiceProvider.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 840surface.ServiceContainer.RemoveService(typeof(IExtenderProviderService)); 847mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Once()); 851mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Exactly(2)); 865mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never()); 869mockParentProvider?.Verify(p => p.GetService(typeof(IExtenderProviderService)), Times.Never());
System\Windows\Forms\Design\DesignerExtendersTests.cs (2)
17Mock<IExtenderProviderService> extenderServiceMock = new(); 21IExtenderProviderService extenderService = designerExtenders.TestAccessor().Dynamic._extenderService;
System\Windows\Forms\Design\InheritanceUITests.cs (4)
46Mock<IExtenderProviderService> mockExtenderProviderService = new(); 49.Setup(s => s.GetService(typeof(IExtenderProviderService))) 69Mock<IExtenderProviderService> mockExtenderProviderService = new(); 72.Setup(s => s.GetService(typeof(IExtenderProviderService)))