예제 #1
0
        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)
 {
     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");
 }
예제 #4
0
		public void Initialize(IScriptPackSession session)
		{
			_nUnitScriptPack.Initialize(session);

			session.ImportNamespace("Scriptcs.BDDfy");
			session.ImportNamespace("Scriptcs.BDDfy");
			session.ImportNamespace("NUnit.Framework");
		}
예제 #5
0
        public override void Initialize(IScriptPackSession session)
        {
            session.ImportNamespace("Akka");
            session.ImportNamespace("Akka.Actor");
            session.ImportNamespace("Akka.Configuration.Hocon");

            base.Initialize(session);
        }
예제 #6
0
        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");
        }
예제 #8
0
        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");
        }
예제 #10
0
        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");
        }
예제 #11
0
        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
        }
예제 #12
0
        void IScriptPack.Initialize(IScriptPackSession session)
        {
            session.ImportNamespace("ScriptCS.Gui");

            session.AddReference("System.Windows.Forms");
            session.AddReference("System.Drawing");
        }
예제 #13
0
파일: BauTask.cs 프로젝트: pgermishuys/bau
        public override void Initialize(IScriptPackSession session)
        {
            Guard.AgainstNullArgument("session", session);

            base.Initialize(session);
            session.ImportNamespace(this.GetType().Namespace);
        }
예제 #14
0
        void IScriptPack.Initialize(IScriptPackSession session)
        {
            session.ImportNamespace("ScriptCS.Gui");

            session.AddReference("System.Windows.Forms");
            session.AddReference("System.Drawing");
        }
예제 #15
0
        public override void Initialize(IScriptPackSession session)
        {
            Guard.AgainstNullArgument("session", session);

            session.ImportNamespace(this.GetType().Namespace);
            this.Context = new Bau(session.ScriptArgs ?? new string[0]);
        }
예제 #16
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");
        }
예제 #17
0
        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");
        }
예제 #18
0
        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");
        }
예제 #19
0
 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");
 }
예제 #20
0
        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;
        }
예제 #21
0
        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");
        }
예제 #22
0
        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("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");
 }
예제 #25
0
 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)
 {
     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");
 }
예제 #27
0
        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);
        }
예제 #28
0
        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");
        }
예제 #29
0
        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");
 }
예제 #31
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("System");
     session.ImportNamespace("Napkin");
 }
예제 #32
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("NUnit.Framework");
     session.ImportNamespace("ScriptCs.NUnit");
     session.ImportNamespace("System.Reflection");
 }
예제 #33
0
 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");
 }
예제 #36
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("FluentAutomation");
     session.ImportNamespace("FluentAutomation.Exceptions");
 }
예제 #37
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("Scriptcs.AzureMobileServices");
 }
예제 #38
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("ShovelPack");
     session.ImportNamespace("ShovelPack.ScriptExtensions");
     ShovelStaticContext.Initialize();
 }
예제 #39
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("System.Reflection");
 }
 void IScriptPack.Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("Microsoft.Diagnostics.Runtime");
     session.ImportNamespace("ScriptCs.ClrDiagnostics");
 }
예제 #41
0
 public void Initialize(IScriptPackSession session)
 {
     session.ImportNamespace("ShovelPack");
     session.ImportNamespace("ShovelPack.ScriptExtensions");
     ShovelStaticContext.Initialize();
 }
예제 #42
0
 void IScriptPack.Initialize(IScriptPackSession session)
 {
     session.AddReference("System.Speech");
     session.ImportNamespace("System.Speech.Synthesis");
 }