IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
CShell.ScriptingEngine Class Reference
+ Inheritance diagram for CShell.ScriptingEngine:
+ Collaboration diagram for CShell.ScriptingEngine:

Public Member Functions

 ScriptingEngine ()
 
void Dispose ()
 
Task< EvaluatorResultEvaluateAsync (string input)
 
Task< EvaluatorResultEvaluateAsync (string input, string sourceFile)
 
Task< EvaluatorResultEvaluateAsync (string input, string sourceFile, CancellationToken cancellationToken)
 
EvaluatorResult Evaluate (string input)
 
EvaluatorResult Evaluate (string input, string sourceFile)
 
void Interrupt ()
 
void ReferenceAssembly (Assembly assembly)
 
void ReferenceAssembly (string file)
 
string GetUsing ()
 
string GetVars ()
 
 ScriptingEngine ()
 
void Dispose ()
 
Task< EvaluatorResultEvaluateAsync (string input)
 
Task< EvaluatorResultEvaluateAsync (string input, string sourceFile)
 
Task< EvaluatorResultEvaluateAsync (string input, string sourceFile, CancellationToken cancellationToken)
 
EvaluatorResult Evaluate (string input)
 
EvaluatorResult Evaluate (string input, string sourceFile)
 
void Interrupt ()
 
void ReferenceAssembly (Assembly assembly)
 
void ReferenceAssembly (string file)
 
string GetUsing ()
 
string GetVars ()
 

Properties

CSharpCompletion CodeCompletion [get]
 

Events

EventHandler< ConsoleEventArgsConsoleOutput
 
EventHandler
< EvaluateStartedEventArgs
EvaluateStarted
 
EventHandler
< EvaluateCompletedEventArgs
EvaluateCompleted
 

Private Member Functions

void OnConsoleOutput (string text, TextType textType)
 
void OnConsoleOutput (ConsoleEventArgs e)
 
void OnEvaluateStarted (string input, string sourceFile)
 
void OnEvaluateCompleted (EvaluateCompletedEventArgs e)
 
void OnConsoleOutput (string text, TextType textType)
 
void OnConsoleOutput (ConsoleEventArgs e)
 
void OnEvaluateStarted (string input, string sourceFile)
 
void OnEvaluateCompleted (EvaluateCompletedEventArgs e)
 

Static Private Member Functions

static bool IsMessage (string message, string messageType)
 
static bool IsMessage (string message, string messageType)
 

Private Attributes

readonly Evaluator evaluator
 
readonly CompilerContext context
 
readonly TaskFactory taskFactory
 
readonly CancellationTokenSource tokenSource
 
readonly CSharpCompletion codeCompletion
 

Constructor & Destructor Documentation

Member Function Documentation

void CShell.ScriptingEngine.Dispose ( )
inline
void CShell.ScriptingEngine.OnConsoleOutput ( string  text,
TextType  textType 
)
inlineprivate
void CShell.ScriptingEngine.OnConsoleOutput ( ConsoleEventArgs  e)
inlineprivate
void CShell.ScriptingEngine.OnEvaluateStarted ( string  input,
string  sourceFile 
)
inlineprivate
void CShell.ScriptingEngine.OnEvaluateCompleted ( EvaluateCompletedEventArgs  e)
inlineprivate
Task<EvaluatorResult> CShell.ScriptingEngine.EvaluateAsync ( string  input,
string  sourceFile 
)
inline
Task<EvaluatorResult> CShell.ScriptingEngine.EvaluateAsync ( string  input,
string  sourceFile,
CancellationToken  cancellationToken 
)
inline
EvaluatorResult CShell.ScriptingEngine.Evaluate ( string  input,
string  sourceFile 
)
inline
static bool CShell.ScriptingEngine.IsMessage ( string  message,
string  messageType 
)
inlinestaticprivate
void CShell.ScriptingEngine.Interrupt ( )
inline
void CShell.ScriptingEngine.ReferenceAssembly ( Assembly  assembly)
inline
void CShell.ScriptingEngine.ReferenceAssembly ( string  file)
inline
string CShell.ScriptingEngine.GetUsing ( )
inline
string CShell.ScriptingEngine.GetVars ( )
inline
void CShell.ScriptingEngine.Dispose ( )
inline
void CShell.ScriptingEngine.OnConsoleOutput ( string  text,
TextType  textType 
)
inlineprivate
void CShell.ScriptingEngine.OnConsoleOutput ( ConsoleEventArgs  e)
inlineprivate
void CShell.ScriptingEngine.OnEvaluateStarted ( string  input,
string  sourceFile 
)
inlineprivate
void CShell.ScriptingEngine.OnEvaluateCompleted ( EvaluateCompletedEventArgs  e)
inlineprivate
Task<EvaluatorResult> CShell.ScriptingEngine.EvaluateAsync ( string  input)
inline
Task<EvaluatorResult> CShell.ScriptingEngine.EvaluateAsync ( string  input,
string  sourceFile 
)
inline
Task<EvaluatorResult> CShell.ScriptingEngine.EvaluateAsync ( string  input,
string  sourceFile,
CancellationToken  cancellationToken 
)
inline
EvaluatorResult CShell.ScriptingEngine.Evaluate ( string  input)
inline
EvaluatorResult CShell.ScriptingEngine.Evaluate ( string  input,
string  sourceFile 
)
inline
static bool CShell.ScriptingEngine.IsMessage ( string  message,
string  messageType 
)
inlinestaticprivate
void CShell.ScriptingEngine.Interrupt ( )
inline
void CShell.ScriptingEngine.ReferenceAssembly ( Assembly  assembly)
inline
void CShell.ScriptingEngine.ReferenceAssembly ( string  file)
inline
string CShell.ScriptingEngine.GetUsing ( )
inline
string CShell.ScriptingEngine.GetVars ( )
inline

Member Data Documentation

readonly Evaluator CShell.ScriptingEngine.evaluator
private
readonly CompilerContext CShell.ScriptingEngine.context
private
readonly TaskFactory CShell.ScriptingEngine.taskFactory
private
readonly CancellationTokenSource CShell.ScriptingEngine.tokenSource
private
readonly CSharpCompletion CShell.ScriptingEngine.codeCompletion
private

Property Documentation

CSharpCompletion CShell.ScriptingEngine.CodeCompletion
get

Event Documentation

EventHandler< EvaluateStartedEventArgs > CShell.ScriptingEngine.EvaluateStarted
EventHandler< EvaluateCompletedEventArgs > CShell.ScriptingEngine.EvaluateCompleted

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