Interface IAsyncLifetime
Used to provide asynchronous lifetime functionality. Currently supported:
- Test classes
- Classes used in IClassFixture<TFixture>
- Classes used in ICollectionFixture<TFixture>.
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public interface IAsyncLifetime
Methods
| Improve this Doc View SourceDisposeAsync()
Called when an object is no longer needed. Called just before
Declaration
Task DisposeAsync()
Returns
Type | Description |
---|---|
Task |
InitializeAsync()
Called immediately after the class has been created, before it is used.
Declaration
Task InitializeAsync()
Returns
Type | Description |
---|---|
Task |