Pip-Services-Commons-Dotnet
Static Public Member Functions | List of all members
PipServices3.Commons.Run.Closer Class Reference

Helper class that closes previously opened components. More...

Static Public Member Functions

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...
 

Detailed Description

Helper class that closes previously opened components.

See IClosable

Member Function Documentation

◆ 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.
componentsa 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.
componenta list of components to be closed

See IClosable


The documentation for this class was generated from the following file: