AutofacDependencyResolver.SetLifetimeScope(ILifetimeScope) method¶
Defined in
Type: AutofacDependencyResolver
Namespace: Splat.Autofac
Assembly: Splat.Autofac.dll
Applies to
net11.0, net10.0, netstandard2.0, net471, net472, net47, net48, net481
public void SetLifetimeScope(ILifetimeScope lifetimeScope)
Summary: Sets the lifetime scope which will be used to resolve ReactiveUI services. It should be set after Autofac application-wide container is built.
Parameters
| Name | Type | Description |
|---|---|---|
lifetimeScope | ILifetimeScope | Lifetime scope, which will be used to resolve ReactiveUI services. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when _lifetimeScopeSet. |