Show / Hide Table of Contents

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 Source

DisposeAsync()

Called when an object is no longer needed. Called just before if the class also implements that.

Declaration
Task DisposeAsync()
Returns
Type Description
Task
| Improve this Doc View Source

InitializeAsync()

Called immediately after the class has been created, before it is used.

Declaration
Task InitializeAsync()
Returns
Type Description
Task
  • Improve this Doc
  • View Source
Back to top Generated by DocFX