Beispiel #1
0
        public JSGlobal(CWDFileLoader fileLoader, JSConsole console, EmbeddedResourcesUtils embeddedResourceLoader)
        {
            Trace.Assert(fileLoader != null);
            Trace.Assert(console != null);
            Trace.Assert(embeddedResourceLoader != null);

            this.embeddedResourceLoader = embeddedResourceLoader;
            this.console    = console;
            this.fileLoader = fileLoader;
        }
        public ClosureFrameworkAdapter(IEngine engine, CWDFileLoader fileLoader, OneTimeFileLoader oneTimeFileLoader, JSGlobal jsGlobal, string baseJsFile) : base(engine, fileLoader, jsGlobal)
        {
            Trace.Assert(oneTimeFileLoader != null);
            Trace.Assert(!String.IsNullOrWhiteSpace(baseJsFile));
            Trace.Assert(File.Exists(baseJsFile));

            this.oneTimeFileLoader = oneTimeFileLoader;
            this.baseJsFile        = baseJsFile;
            basedir = new FileInfo(baseJsFile).Directory.FullName;
        }
        public ClosureFrameworkAdapter(IEngine engine, CWDFileLoader fileLoader, OneTimeFileLoader oneTimeFileLoader, JSGlobal jsGlobal, string baseJsFile)
            : base(engine, fileLoader, jsGlobal)
        {
            Trace.Assert(oneTimeFileLoader != null);
              Trace.Assert(!String.IsNullOrWhiteSpace(baseJsFile));
              Trace.Assert(File.Exists(baseJsFile));

              this.oneTimeFileLoader = oneTimeFileLoader;
              this.baseJsFile = baseJsFile;
              basedir = new FileInfo(baseJsFile).Directory.FullName;
        }