C# Class Patterns.Runtime.TemporaryScope

Provides a disposable scope with configurable setup and tear-down actions.
Inheritance: IDisposable
Afficher le fichier Open project: patterns-group/code-patterns

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes this scope; if a tear-down method exists, it is executed.

TemporaryScope ( System.Action setup = null, System.Action tearDown = null ) : System

Initializes a new instance of the TemporaryScope class.

Method Details

Dispose() public méthode

Disposes this scope; if a tear-down method exists, it is executed.
public Dispose ( ) : void
Résultat void

TemporaryScope() public méthode

Initializes a new instance of the TemporaryScope class.
public TemporaryScope ( System.Action setup = null, System.Action tearDown = null ) : System
setup System.Action The setup.
tearDown System.Action The tear down.
Résultat System