public void Initialize(IScriptPackSession session) { session.AddReference("System.dll"); session.ImportNamespace("System"); session.ImportNamespace("ScriptCs.Net"); }
public void Initialize(IScriptPackSession session) { session.AddReference(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin", "System.Web.Http.dll")); session.AddReference("System.Net.Http"); session.ImportNamespace("System.Web.Http"); session.ImportNamespace("System.Net.Http"); }
public void Initialize(IScriptPackSession session) { _nUnitScriptPack.Initialize(session); session.ImportNamespace("Scriptcs.BDDfy"); session.ImportNamespace("Scriptcs.BDDfy"); session.ImportNamespace("NUnit.Framework"); }
public override void Initialize(IScriptPackSession session) { session.ImportNamespace("Akka"); session.ImportNamespace("Akka.Actor"); session.ImportNamespace("Akka.Configuration.Hocon"); base.Initialize(session); }
public override void Initialize(IScriptPackSession session) { session.ImportNamespace(this.GetType().Namespace); session.ImportNamespace("TaskableScriptCs.Contracts"); session.ImportNamespace("TaskableScriptCs.Contracts.Parameters"); var arguments = Arguments.Parse(session.ScriptArgs ?? new string[] { }); this.Context = new Taskable(arguments); }
public void Initialize(IScriptPackSession session) { if (session == null) { throw new ArgumentNullException("session"); } session.ImportNamespace("ScriptCs.AzureMediaServices"); session.ImportNamespace("Microsoft.WindowsAzure.MediaServices.Client"); }
public void Initialize(IScriptPackSession session) { Guard.AgainstNullArgument("session", session); session.ImportNamespace("Splunk.Client"); session.ImportNamespace("System.Reactive"); session.ImportNamespace("System.Reactive.Concurrency"); session.ImportNamespace("System.Reactive.Linq"); session.AddReference("System.Threading.Tasks"); session.AddReference("System.Runtime"); session.AddReference("System.Dynamic.Runtime"); }
internal static void AddClickTwiceReferences(this IScriptPackSession session) { session.AddReference("ClickTwice.Publisher.Core"); //session.AddReference("ClickTwice.Handlers.AppDetailsPage"); session.AddReference("ClickTwice.Templating"); session.ImportNamespace("ClickTwice.Publisher.Core"); session.ImportNamespace("ClickTwice.Publisher.Core.Resources"); session.ImportNamespace("ClickTwice.Publisher.Core.Handlers"); session.ImportNamespace("ClickTwice.Publisher.Core.Loggers"); session.ImportNamespace("ClickTwice.Templating"); //session.ImportNamespace("ClickTwice.Handlers.AppDetailsPage"); //TODO reenable }
void IScriptPack.Initialize(IScriptPackSession session) { session.ImportNamespace("ScriptCS.Gui"); session.AddReference("System.Windows.Forms"); session.AddReference("System.Drawing"); }
public override void Initialize(IScriptPackSession session) { Guard.AgainstNullArgument("session", session); base.Initialize(session); session.ImportNamespace(this.GetType().Namespace); }
public override void Initialize(IScriptPackSession session) { Guard.AgainstNullArgument("session", session); session.ImportNamespace(this.GetType().Namespace); this.Context = new Bau(session.ScriptArgs ?? new string[0]); }
internal static void AddMSBuildReferences(this IScriptPackSession session) { session.AddReference(MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build")); session.AddReference(MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Framework")); session.AddReference(MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Tasks") ?? MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Tasks.Core") ?? MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Tasks.v4.0")); session.AddReference(MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Utilities.Core") ?? MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Utilities") ?? MSBuildResolver.GetBuildAssemblyPath("Microsoft.Build.Utilities.v4.0")); session.ImportNamespace("Microsoft.Build"); session.ImportNamespace("Microsoft.Build.Framework"); session.ImportNamespace("Microsoft.Build.Evaluation"); session.ImportNamespace("Microsoft.Build.Execution"); }
public void Initialize(IScriptPackSession session) { Guard.AgainstNullArgument("session", session); session.ImportNamespace("Nancy"); session.ImportNamespace("Nancy.Bootstrapper"); session.ImportNamespace("Nancy.Conventions"); session.ImportNamespace("Nancy.Cryptography"); session.ImportNamespace("Nancy.ErrorHandling"); session.ImportNamespace("Nancy.Hosting.Self"); session.ImportNamespace("Nancy.ModelBinding"); session.ImportNamespace("Nancy.Security"); session.ImportNamespace("Nancy.Validation"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("System.IO.Ports"); session.ImportNamespace("System.Threading"); session.ImportNamespace("ScriptCs.Arduino"); session.ImportNamespace("Arduino4Net.Components.Buttons"); session.ImportNamespace("Arduino4Net.Components.Leds"); session.ImportNamespace("Arduino4Net.Extensions"); session.ImportNamespace("Arduino4Net.Interfaces"); session.ImportNamespace("Arduino4Net.Models"); }
public override void Initialize(IScriptPackSession session) { session.ImportNamespace("ScriptCs.ClickTwice"); //session.AddMSBuildReferences(); session.AddClickTwiceReferences(); base.Initialize(session); AppDomain.CurrentDomain.AssemblyLoad += CurrentDomain_AssemblyLoad; AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; }
void IScriptPack.Initialize(IScriptPackSession session) { //Here you can perform initialization like pass using statements //and references by using the session object's two methods: //AddReference //Use this method to add library references that need to be //available in your script. After the script pack is loaded, //the specified references will be available for use //without any code inside the script. session.AddReference("System.Net.Http"); //ImportNamespace //This method can import namespaces for use in your scripts to help //keep user's scripts clean and simple. session.ImportNamespace("System.Net.Http"); session.ImportNamespace("System.Net.Http.Headers"); session.ImportNamespace("System.Collections.Generic"); session.ImportNamespace("Newtonsoft.Json"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("System.IO.Ports"); session.ImportNamespace("System.Threading"); session.ImportNamespace("ScriptCs.Arduino"); session.ImportNamespace("ScriptCs.Arduino.Components"); session.ImportNamespace("ScriptCs.Arduino.Models"); session.ImportNamespace("ScriptCs.Arduino.Interfaces"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("ScriptCs.SsRedis"); session.ImportNamespace("ServiceStack.Redis"); session.ImportNamespace("ServiceStack.Redis.Generic"); session.ImportNamespace("ServiceStack.Redis.Messaging"); session.ImportNamespace("ServiceStack.Text"); session.ImportNamespace("ServiceStack.Text.Json"); }
public void Initialize(IScriptPackSession session) { var namespaces = new[] { "Raven.Client", "Raven.Client.Embedded", "Raven.Client.Document", "Raven.Client.Indexes", "Raven.Client.Extensions", "Raven.Client.Linq", "Raven.Client.Bundles.MoreLikeThis", "Raven.Client.Bundles.Versioning" }; foreach (var ns in namespaces) session.ImportNamespace(ns); }
public void Initialize(IScriptPackSession session) { session.AddReference("nunit.core.dll"); session.AddReference("nunit.core.interfaces.dll"); session.AddReference("nunit.framework.dll"); session.ImportNamespace("NUnit.Framework"); session.ImportNamespace("ScriptCs.NUnit"); session.ImportNamespace("ScriptCs.NUnit"); session.ImportNamespace("System"); session.ImportNamespace("System.Linq"); session.ImportNamespace("System.Reflection"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("System.Xml.Linq"); session.ImportNamespace("System.Xml.XPath"); session.ImportNamespace("ScriptCs.BuildCs"); session.ImportNamespace("BuildCs"); session.ImportNamespace("BuildCs.AssemblyInfo"); session.ImportNamespace("BuildCs.Environment"); session.ImportNamespace("BuildCs.FileSystem"); session.ImportNamespace("BuildCs.Git"); session.ImportNamespace("BuildCs.MsBuild"); session.ImportNamespace("BuildCs.Nuget"); session.ImportNamespace("BuildCs.NUnit"); session.ImportNamespace("BuildCs.Processes"); session.ImportNamespace("BuildCs.SemVer"); session.ImportNamespace("BuildCs.Targetting"); session.ImportNamespace("BuildCs.Tracing"); session.ImportNamespace("BuildCs.Xml"); session.ImportNamespace("BuildCs.XUnit"); session.ImportNamespace("BuildCs.Zip"); var arguments = new Arguments(session.ScriptArgs); _build = new Build(new BuildSessionFactory().Create(arguments)); var tracer = _build.GetService <Tracer>(); if (tracer.Listeners.Count == 0) { tracer.Listeners.Add(new ConsoleListener(_build)); } }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("FluentAutomation"); session.ImportNamespace("FluentAutomation.Exceptions"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("System"); session.ImportNamespace("Napkin"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("NUnit.Framework"); session.ImportNamespace("ScriptCs.NUnit"); session.ImportNamespace("System.Reflection"); }
void IScriptPack.Initialize(IScriptPackSession session) { session.ImportNamespace("Microsoft.Diagnostics.Runtime"); session.ImportNamespace("ScriptCs.ClrDiagnostics"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("Scriptcs.AzureMobileServices"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("Glimpse.ScriptCs"); session.ImportNamespace("System.Web"); session.ImportNamespace("Glimpse.AspNet.Extensions"); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("ShovelPack"); session.ImportNamespace("ShovelPack.ScriptExtensions"); ShovelStaticContext.Initialize(); }
public void Initialize(IScriptPackSession session) { session.ImportNamespace("System.Reflection"); }
void IScriptPack.Initialize(IScriptPackSession session) { session.AddReference("System.Speech"); session.ImportNamespace("System.Speech.Synthesis"); }