C# 클래스 Patterns.Runtime.TemporaryScope

Provides a disposable scope with configurable setup and tear-down actions.
상속: IDisposable
파일 보기 프로젝트 열기: patterns-group/code-patterns

공개 메소드들

메소드 설명
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.

메소드 상세

Dispose() 공개 메소드

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

TemporaryScope() 공개 메소드

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.
리턴 System