コード例 #1
0
        public override IScriptContext CreateScriptContext(IDependencyContainer container)
        {
            IEvaluator evaluator = CSScript.CodeDomEvaluator.Clone();

            evaluator.ReferenceDomainAssemblies();

            var ctx = new CSharpScriptContext(container, evaluator);

            RegisterContext(ctx);
            return(ctx);
        }
コード例 #2
0
 public CSharpPlugin(ScriptPluginMeta pluginMeta, IDependencyContainer container, ScriptingProvider provider, CSharpScriptContext context) : base(pluginMeta, container, provider, context)
 {
 }