ServiceLocator class¶
Defined in
Namespace: ReactiveMarbles.Locator
Assembly: ReactiveMarbles.Locator.dll
Full name: ReactiveMarbles.Locator.ServiceLocator
Modifiers: public sealed
Summary¶
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¶
| Name | Summary |
|---|---|
| .ctor |
Methods¶
| Name | Summary |
|---|---|
| static Current | Gets the current instance. |
| static Set | Sets the decorated instance of the [IServiceLocator](# |
| GetService | Gets the service. |
| GetServices | Gets the services. |
| TryGetService | Try and get the service. |
| GetLazyService | Gets a lazy for a service. |
| TryGetLazyService | Try and get the lazy service. |
| HasService | Determines whether the specified service type has service. |
| AddService | Adds the service. |
| AddSingleton | Adds a single instance service. |
| AddLazySingleton | Adds a lazy single instance service. |