-
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#595): Implement TestcontainersContainer.DisposeAsync thread safe
- Loading branch information
1 parent
9baa4fd
commit d6365ee
Showing
3 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,55 @@ | ||
namespace DotNet.Testcontainers.Containers | ||
{ | ||
using System; | ||
using JetBrains.Annotations; | ||
|
||
/// <summary> | ||
/// Docker container states. | ||
/// </summary> | ||
[PublicAPI] | ||
[Flags] | ||
public enum TestcontainersState | ||
{ | ||
/// <summary> | ||
/// Docker container was not created. | ||
/// Docker container has not been created. | ||
/// </summary> | ||
[PublicAPI] | ||
Undefined, | ||
Undefined = -1, | ||
|
||
/// <summary> | ||
/// Docker container is created. | ||
/// </summary> | ||
[PublicAPI] | ||
Created, | ||
Created = 1, | ||
|
||
/// <summary> | ||
/// Docker container is restarting. | ||
/// </summary> | ||
[PublicAPI] | ||
Restarting, | ||
Restarting = 2, | ||
|
||
/// <summary> | ||
/// Docker container is running. | ||
/// </summary> | ||
[PublicAPI] | ||
Running, | ||
Running = 4, | ||
|
||
/// <summary> | ||
/// Docker container is paused. | ||
/// </summary> | ||
[PublicAPI] | ||
Paused, | ||
Paused = 8, | ||
|
||
/// <summary> | ||
/// Docker container is exited. | ||
/// </summary> | ||
[PublicAPI] | ||
Exited, | ||
Exited = 16, | ||
|
||
/// <summary> | ||
/// Docker container is dead. | ||
/// </summary> | ||
[PublicAPI] | ||
Dead, | ||
Dead = 32, | ||
} | ||
} |