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