1 implementation of IMyService
Microsoft.AspNetCore.Components.Tests (1)
DependencyInjectionTest.cs (1)
224
class MyServiceImplementation :
IMyService
{ }
24 references to IMyService
Microsoft.AspNetCore.Components.Tests (24)
DependencyInjectionTest.cs (24)
64
$"of type '{typeof(
IMyService
).FullName}'.", ex.Message);
71
_serviceProvider.AddKeyedService<
IMyService
>(serviceInstance, "mismatched-key");
80
$"of type '{typeof(
IMyService
).FullName}' with key '{HasKeyedInjectableProperty.ServiceKey}'.", ex.Message);
88
_serviceProvider.AddService<
IMyService
>(serviceInstance);
102
_serviceProvider.AddKeyedService<
IMyService
>(serviceInstance, HasKeyedInjectableProperty.ServiceKey);
118
_serviceProvider.AddService<
IMyService
>(serviceInstance);
121
_serviceProvider.AddKeyedService<
IMyService
>(serviceInstance, HasManyInjectableProperties.ServiceKey);
140
_serviceProvider.AddService<
IMyService
>(serviceInstance);
154
_serviceProvider.AddService<
IMyService
>(serviceInstance);
168
public
IMyService
SomeProperty { get; set; }
169
public
IMyService
PrivatePropertyValue => PrivateProperty;
170
private
IMyService
PrivateProperty { get; set; }
175
[Inject] public static
IMyService
StaticPropertyWithInject { get; set; }
176
public static
IMyService
StaticPropertyWithoutInject { get; set; }
181
[Inject] public
IMyService
MyService { get; }
186
[Inject] public
IMyService
MyService { get; set; }
193
[Inject(Key = ServiceKey)] public
IMyService
MyService { get; set; }
198
[Inject] private
IMyService
MyService { get; set; }
200
public
IMyService
PrivateMyService => MyService;
209
[Inject] public
IMyService
PublicReadWrite { get; set; }
210
[Inject] public
IMyService
PublicReadOnly { get; private set; }
211
[Inject] private
IMyService
Private { get; set; }
214
[Inject(Key = ServiceKey)] public
IMyService
KeyedService { get; set; }
216
public
IMyService
PrivateValue => Private;