The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

DependencyResolverMixins.

ServiceRegistrationCallback(IMutableDependencyResolver, Type, Action<IDisposable>) Method

Summary

Registers a new callback that occurs when a new service with the specified type is registered.
Namespace
Splat
Containing Type
DependencyResolverMixins

Syntax

public static IDisposable ServiceRegistrationCallback(this IMutableDependencyResolver resolver, Type serviceType, Action<IDisposable> callback)

Parameters

Name Type Description
resolver IMutableDependencyResolver The resolver we want to register the callback with.
serviceType Type The service type we are wanting to observe.
callback Action<IDisposable> The callback which should be called.

Return Value

Type Description
IDisposable A disposable which will stop notifications to the callback.