# IServiceScopeFactory

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dependency-injection/trait-iservicescopefactory/

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

```rust
trait IServiceScopeFactory
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DependencyInjection/service_provider.rs#L80)

## Members

- [`create_scope`](#function-create_scope)
- [`create_async_scope`](#function-create_async_scope)

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

### create_scope

```rust
fn create_scope(self: &Self) -> ServiceResult<ServiceScope>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DependencyInjection/service_provider.rs#L81)

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

### create_async_scope

```rust
fn create_async_scope(self: &Self) -> ServiceResult<AsyncServiceScope>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DependencyInjection/service_provider.rs#L82)

## Trait implementations

- [`IServiceScopeFactory`](/docs/0.5.0/api/ferroui-dependency-injection/trait-iservicescopefactory/)

## Availability

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