Exemplo n.º 1
0
        public ReportServerTester(IReportServerRepository repository, ILogger logger)
        {
            if (repository == null)
                throw new ArgumentNullException("repository");

            if (logger == null)
                throw new ArgumentNullException("logger");

            this.mReportRepository = repository;
            this.mLogger = logger;
        }
Exemplo n.º 2
0
        public PythonEngine(
            IReportServerReader reportServerReader,
            IReportServerWriter reportServerWriter,
            IReportServerRepository reportServerRepository,
            IFileSystem fileSystem,
            ILogger logger,
            ILogger scriptLogger)
        {
            if (reportServerReader == null)
            {
                throw new ArgumentNullException("reportServerReader");
            }

            if (reportServerWriter == null)
            {
                throw new ArgumentNullException("reportServerWriter");
            }

            if (reportServerRepository == null)
            {
                throw new ArgumentNullException("reportServerRepository");
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException("fileSystem");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            if (scriptLogger == null)
            {
                throw new ArgumentNullException("scriptLogger");
            }

            this.mReportServerReader     = reportServerReader;
            this.mReportServerWriter     = reportServerWriter;
            this.mReportServerRepository = reportServerRepository;
            this.mFileSystem             = fileSystem;
            this.mLogger       = logger;
            this.mScriptLogger = scriptLogger;

            this.mAppDomain    = AppDomain.CreateDomain("sandbox");
            this.mScriptEngine = Python.CreateEngine();
            this.mScriptEngine.Runtime.ImportModule("clr");

            this.mEnginePath = Environment.CurrentDirectory;
        }
Exemplo n.º 3
0
        public ReportServerReader(IReportServerRepository repository, ILogger logger)
        {
            if (repository == null)
                throw new ArgumentNullException("repository");

            if (logger == null)
                throw new ArgumentNullException("logger");

            this.mReportRepository = repository;
            this.mLogger = logger;

            this.mLogger.Debug("Repository.ServerAddress: {0}", this.mReportRepository.ServerAddress);
            this.mLogger.Debug("Repository.RootPath: {0}", this.mReportRepository.RootPath);
        }
Exemplo n.º 4
0
        public ReportServerTester(IReportServerRepository repository, ILogger logger)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.mReportRepository = repository;
            this.mLogger           = logger;
        }
Exemplo n.º 5
0
        public ReportServerWriter(IReportServerRepository repository, ILogger logger)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.mReportRepository = repository;
            this.mLogger           = logger;

            this.mLogger.Debug("Repository.ServerAddress: {0}", this.mReportRepository.ServerAddress);
            this.mLogger.Debug("Repository.RootPath: {0}", this.mReportRepository.RootPath);
        }
Exemplo n.º 6
0
 public ReportServerService(IReportServerRepository reportServerRepository)
 {
     this.reportServerRepository = reportServerRepository;
 }
Exemplo n.º 7
0
 public ReportItemProxy(IReportServerRepository repository)
 {
     this.mReportServerRepository = repository;
 }