Helper class that closes previously opened components.
More...
|
static async Task | CloseOneAsync (string correlationId, object component) |
| Closes specific component. To be closed components must implement IClosable interface. If they don't the call to this method has no effect. More...
|
|
static async Task | CloseAsync (string correlationId, IEnumerable components) |
| Closes multiple components. To be closed components must implement IClosable interface. If they don't the call to this method has no effect. More...
|
|
Helper class that closes previously opened components.
See IClosable
◆ CloseAsync()
static async Task PipServices3.Commons.Run.Closer.CloseAsync |
( |
string |
correlationId, |
|
|
IEnumerable |
components |
|
) |
| |
|
static |
Closes multiple components. To be closed components must implement IClosable interface. If they don't the call to this method has no effect.
- Parameters
-
correlationId | (optional) transaction id to trace execution through call chain. |
components | a list of components to be closed |
See CloseOneAsync(string, object), IClosable
◆ CloseOneAsync()
static async Task PipServices3.Commons.Run.Closer.CloseOneAsync |
( |
string |
correlationId, |
|
|
object |
component |
|
) |
| |
|
static |
Closes specific component. To be closed components must implement IClosable interface. If they don't the call to this method has no effect.
- Parameters
-
correlationId | (optional) transaction id to trace execution through call chain. |
component | a list of components to be closed |
See IClosable
The documentation for this class was generated from the following file: