LocatorExtensions.AddCoreRegistrations(IServiceLocator, IScheduler, IScheduler, IObserver) method¶
Defined in
Type: LocatorExtensions
Namespace: ReactiveMarbles.Mvvm
Assembly: ReactiveMarbles.Mvvm.dll
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
Overloads¶
- 1.
public static IServiceLocator AddCoreRegistrations(this IServiceLocator serviceLocator, IScheduler mainThreadScheduler, IScheduler taskPoolScheduler, IObserver<Exception> exceptionHandler) - 2.
public static IServiceLocator AddCoreRegistrations(this IServiceLocator serviceLocator, Func<ICoreRegistration> coreRegistration)
1. Overload¶
public static IServiceLocator AddCoreRegistrations(this IServiceLocator serviceLocator, IScheduler mainThreadScheduler, IScheduler taskPoolScheduler, IObserver<Exception> exceptionHandler)
Summary: Adds core registrations to the locator.
Parameters
| Name | Type | Description |
|---|---|---|
serviceLocator | [IServiceLocator](# | The service locator. |
mainThreadScheduler | [IScheduler](# | The main thread scheduler. |
taskPoolScheduler | [IScheduler](# | The task pool scheduler. |
exceptionHandler | IObserver | The exception handler. |
Returns: IServiceLocator -- The service locator.
2. Overload¶
public static IServiceLocator AddCoreRegistrations(this IServiceLocator serviceLocator, Func<ICoreRegistration> coreRegistration)
Summary: Adds core registrations to the locator.
Parameters
| Name | Type | Description |
|---|---|---|
serviceLocator | [IServiceLocator](# | The service locator. |
coreRegistration | Func | The core registration. |
Returns: IServiceLocator -- The service locator.