AppLocator.RegisterResolverCallbackChanged(Action) method¶
Defined in
Type: AppLocator
Namespace: Splat
Assembly: Splat.Core.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public static IDisposable RegisterResolverCallbackChanged(Action callback)
View source (opens in a new tab)
Summary: This method allows libraries to register themselves to be set up whenever the dependency resolver changes. Applications should avoid this method, it is usually used for libraries that depend on service location.
Parameters
| Name | Type | Description |
|---|---|---|
callback | Action (opens in a new tab) | A callback that is invoked when the resolver is changed. This callback is also invoked immediately, to configure the current resolver. |
Returns: IDisposable (opens in a new tab) -- When disposed, removes the callback. You probably can ignore this.