1 implementation of TryGetService
Microsoft.Maui (1)
Hosting\Internal\MauiServiceCollection.cs (1)
74
public bool
TryGetService
(Type serviceType, out ServiceDescriptor? descriptor) =>
3 references to TryGetService
Microsoft.Maui (3)
Hosting\ImageSources\ImageSourceServiceProvider.cs (1)
47
if (genericConcreteType != null && InternalCollection.
TryGetService
(genericConcreteType, out _))
Hosting\Internal\MauiFactory.cs (1)
33
if (!_collection.
TryGetService
(serviceType, out ServiceDescriptor? descriptor) || descriptor == null)
Hosting\Internal\MauiHandlersFactory.cs (1)
31
InternalCollection.
TryGetService
(GetVirtualViewHandlerServiceType(iview), out ServiceDescriptor? serviceDescriptor);