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

DependencyResolverMixins.

WithResolver(IDependencyResolver, bool) Method

Summary

Override the default Dependency Resolver until the object returned is disposed.
Namespace
Splat
Containing Type
DependencyResolverMixins

Syntax

[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "CompositeDisposable disposes ActionDisposable.")]
public static IDisposable WithResolver(this IDependencyResolver resolver, bool suppressResolverCallback = true)

Attributes

Type Description
SuppressMessageAttribute

Parameters

Name Type Description
resolver IDependencyResolver The test resolver to use.
suppressResolverCallback bool If we should suppress the resolver callback notify.

Return Value

Type Description
IDisposable A disposable which will reset the resolver back to the original.