IScriptSession Interface

Summary

Represents a script session.
graph BT Type["IScriptSession"] class Type type-node

Syntax

public interface IScriptSession

Methods

Name Value Summary
AddReference(Assembly) void
Adds an assembly reference to the session.
AddReference(FilePath) void
Adds a reference path to the session.
Execute(Script) void
Executes the specified script.
ImportNamespace(string) void
Imports a namespace to the session.

Extension Methods

Name Value Summary
Dump<IScriptSession>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IScriptSession>(IScriptSession[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IScriptSession>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<IScriptSession>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<IScriptSession>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<IScriptSession>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin