# IReadonlyDependencyResolver

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

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

```rust
trait IReadonlyDependencyResolver
```

Resolves services (`IReadonlyDependencyResolver`).

The methods are the object-safe core: callers use the generic forms of
[`ReadonlyDependencyResolverExt`](/docs/0.5.0/api/ferroui-splat/service_location/trait-readonlydependencyresolverext/).

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

## Members

- [`get_service_erased`](#function-get_service_erased)
- [`get_services_erased`](#function-get_services_erased)

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

### get_service_erased

```rust
fn get_service_erased(self: &Self, service_type: ServiceType, contract: Option<&str>) -> Option<ErasedService>
```

The last service registered for `service_type` and `contract`, or `None`
(`GetService<T>(string? contract)`).

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

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

### get_services_erased

```rust
fn get_services_erased(self: &Self, service_type: ServiceType, contract: Option<&str>) -> Vec<ErasedService>
```

Every service registered for `service_type` and `contract`, in the order of registration
(`GetServices<T>(string? contract)`).

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

## Trait implementations

- [`IReadonlyDependencyResolver`](/docs/0.5.0/api/ferroui-splat/service_location/trait-ireadonlydependencyresolver/)

## Availability

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