C# 클래스 Elmah.Assertions.JScriptAssertion

An assertion implementation that uses a JScript expression to determine the outcome.
Each instance of this type maintains a separate copy of the JScript engine so use it sparingly. For example, instead of creating several objects, each with different a expression, try and group all expressions that apply to particular context into a single compound JScript expression using the conditional-OR (||) operator.
상속: IAssertion
파일 보기 프로젝트 열기: elmah/Elmah

공개 메소드들

메소드 설명
JScriptAssertion ( NameValueCollection settings ) : System
JScriptAssertion ( string expression ) : System
JScriptAssertion ( string expression, string assemblyNames, string imports ) : System
Test ( object context ) : bool

비공개 메소드들

메소드 설명
AddDirectiveParameter ( string directive, string parameter, List list, string inits ) : List
ListOrElseArray ( List list, string array ) : string[]
ProcessDirectives ( string expression, string &assemblyNames, string &imports ) : void

메소드 상세

JScriptAssertion() 공개 메소드

public JScriptAssertion ( NameValueCollection settings ) : System
settings System.Collections.Specialized.NameValueCollection
리턴 System

JScriptAssertion() 공개 메소드

public JScriptAssertion ( string expression ) : System
expression string
리턴 System

JScriptAssertion() 공개 메소드

public JScriptAssertion ( string expression, string assemblyNames, string imports ) : System
expression string
assemblyNames string
imports string
리턴 System

Test() 공개 메소드

public Test ( object context ) : bool
context object
리턴 bool