C# Class Patterns.Runtime.TemporaryScope

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

Public Methods

Method 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 method

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

TemporaryScope() public method

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