Skip to content

ServiceLocator class

Defined in

Namespace: ReactiveMarbles.Locator Assembly: ReactiveMarbles.Locator.dll Full name: ReactiveMarbles.Locator.ServiceLocator Modifiers: public sealed

Summary

View source

        Service Locator.
        

Applies to

net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0

Class hierarchy
classDiagram
class ServiceLocator
class IServiceLocator {
    <>
}
IServiceLocator <|.. ServiceLocator
class IGetServices {
    <>
}
IGetServices <|.. ServiceLocator
class IEditServices {
    <>
}
IEditServices <|.. ServiceLocator

Implements: IServiceLocator, IGetServices, IEditServices

Constructors

NameSummary
.ctor

Methods

NameSummary
static CurrentGets the current instance.
static SetSets the decorated instance of the [IServiceLocator](#
GetServiceGets the service.
GetServicesGets the services.
TryGetServiceTry and get the service.
GetLazyServiceGets a lazy for a service.
TryGetLazyServiceTry and get the lazy service.
HasServiceDetermines whether the specified service type has service.
AddServiceAdds the service.
AddSingletonAdds a single instance service.
AddLazySingletonAdds a lazy single instance service.
Inherited members

See also