# DependencyResolverMixins

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/service_location/trait-dependencyresolvermixins/

**trait** · [`ferroui-splat`](/docs/0.5.0/api/ferroui-splat/) · v0.5.0

```rust
trait DependencyResolverMixins
```

`WithResolver` of a resolver (`DependencyResolverMixins`).

The `Type`-based `RegisterConstant(object?, Type)` and `RegisterLazySingleton(Func<object?>,
Type)` of upstream are not ported: they take the service type at run time.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver_mixins.rs#L12)

## Members

- [`with_resolver`](#function-with_resolver)
- [`with_resolver_suppressing`](#function-with_resolver_suppressing)

<a id="function-with_resolver"></a>

### with_resolver

```rust
fn with_resolver(self: &Self) -> Rc<dyn IDisposable>
```

Makes the resolver the current one of `AppLocator` until the returned disposable is
disposed, without notifying the callbacks of the locator (`WithResolver()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver_mixins.rs#L15)

<a id="function-with_resolver_suppressing"></a>

### with_resolver_suppressing

```rust
fn with_resolver_suppressing(self: &Self, suppress_resolver_callback: bool) -> Rc<dyn IDisposable>
```

Makes the resolver the current one of `AppLocator` until the returned disposable is
disposed; the callbacks of the locator are notified unless `suppress_resolver_callback`
(`WithResolver(bool)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver_mixins.rs#L22)

## Trait implementations

- [`DependencyResolverMixins`](/docs/0.5.0/api/ferroui-splat/service_location/trait-dependencyresolvermixins/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
