Exemple #1
0
 protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher)
 {
     this.fileWriterFactory = fileWriterFactory;
     this.fileReaderFactory = fileReaderFactory;
     this.debugStatusReader = debugStatusReader;
     this.currentDirectoryWrapper = currentDirectoryWrapper;
     this.hasher = hasher;
 }
        public DocumentFactory(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory)
        {
            Ensure.ArgumentNotNull(fileWriterFactory, "fileWriterFactory");
            Ensure.ArgumentNotNull(fileReaderFactory, "fileReaderFactory");

            _fileWriterFactory = fileWriterFactory;
            _fileReaderFactory = fileReaderFactory;
        }
Exemple #3
0
        public HtmlExporter(IFileWriterFactory writerFactory, IDocumentParser parser)
        {
            Ensure.ArgumentNotNull(writerFactory, "writerFactory");
            Ensure.ArgumentNotNull(parser, "parser");

            _writerFactory = writerFactory;
            _parser = parser;
        }
        public DocumentEditor(
            IDocumentFactory documentFactory, 
            IFileSystem fileSystem,
            IFileWriterFactory writerFactory,
            IDialogService dialogService)
        {
            Ensure.ArgumentNotNull(documentFactory, "documentFactory");
            Ensure.ArgumentNotNull(fileSystem, "fileSystem");
            Ensure.ArgumentNotNull(writerFactory, "writerFactory");
            Ensure.ArgumentNotNull(dialogService, "dialogService");

            _documentFactory = documentFactory;
            _fileSystem = fileSystem;
            _tempDirPath = _fileSystem.Path.Combine(_fileSystem.Path.GetTempPath(), "Proverb");
            _writerFactory = writerFactory;
            _dialogService = dialogService;
            Document = _documentFactory.NewDocument();
        }
 public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher)
     : base(fileWriterFactory, fileReaderFactory, debugStatusReader, currentDirectoryWrapper, hasher)
 {
 }
Exemple #6
0
 public CssBundleFactory WithFileWriterFactory(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
     return(this);
 }
Exemple #7
0
 public PersonLogger(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
 }
 public FunctionFileLoggerProvider(IOptions <ScriptJobHostOptions> scriptOptions, IFileLoggingStatusManager fileLoggingStatusManager,
                                   IPrimaryHostStateProvider primaryHostStateProvider, IFileWriterFactory fileWriterFactory)
 {
     _rootLogPath          = scriptOptions.Value.RootLogPath;
     _isFileLoggingEnabled = () => fileLoggingStatusManager.IsFileLoggingEnabled;
     _isPrimary            = () => primaryHostStateProvider.IsPrimary;
     _hostInstanceId       = scriptOptions.Value.InstanceId;
     _fileWriterFactory    = fileWriterFactory ?? throw new ArgumentNullException(nameof(fileWriterFactory));
 }
Exemple #9
0
 public CssBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory)
     : base(fileWriterFactory, fileReaderFactory, debugStatusReader)
 {
 }
Exemple #10
0
 public FileRenderer(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
 }
 public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDirectoryWrapper directoryWrapper, IHasher hasher, IContentCache bundleCache, IContentCache rawContentCache) :
     base(fileWriterFactory, fileReaderFactory, debugStatusReader, directoryWrapper, hasher, bundleCache, rawContentCache)
 {
 }
 public JavaScriptBundleFactory WithFileWriterFactory(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
     return this;
 }
Exemple #13
0
 public CSSBundleFactory WithFileWriterFactory(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
     return this;
 }
 public FileRenderer(IFileWriterFactory fileWriterFactory)
 {            
     this.fileWriterFactory = fileWriterFactory;
 }
Exemple #15
0
 public PersonLogger()
 {
     fileWriterFactory = new FileWriterFactory();
 }
Exemple #16
0
 protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader)
 {
     this.fileWriterFactory = fileWriterFactory;
     this.fileReaderFactory = fileReaderFactory;
     this.debugStatusReader = debugStatusReader;
 }
Exemple #17
0
 public CssBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher)
     : base(fileWriterFactory, fileReaderFactory, debugStatusReader, currentDirectoryWrapper, hasher)
 {
 }
 public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, ICurrentDirectoryWrapper currentDirectoryWrapper, IHasher hasher, IBundleCache bundleCache) :
     base(fileWriterFactory, fileReaderFactory, debugStatusReader, currentDirectoryWrapper, hasher, bundleCache)
 {
 }
 public EntityLogger()
 {
     fileWriterFactory = new FileWriterFactory();
 }
 public EntityLogger(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
 }
Exemple #21
0
 private CssBundleFactory WithFileWriterFactory(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
     return this;
 }
Exemple #22
0
 public JavaScriptBundleFactory WithFileWriterFactory(IFileWriterFactory fileWriterFactory)
 {
     this.fileWriterFactory = fileWriterFactory;
     return(this);
 }
Exemple #23
0
 protected BundleBase(IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDebugStatusReader debugStatusReader)
 {
     this.fileWriterFactory = fileWriterFactory;
     this.fileReaderFactory = fileReaderFactory;
     this.debugStatusReader = debugStatusReader;
 }
 public void SetUp()
 {
     mockDebugStatusReader = new StubDebugStatusReader(false);
     mockFileWriterFactory = new StubFileWriterFactory();
     cssMockFileReaderFactory = new StubFileReaderFactory();
     jsMockFileReaderFactory = new StubFileReaderFactory();
     cssMockFileReaderFactory.SetContents(css);
     jsMockFileReaderFactory.SetContents(javaScript);
 }
Exemple #25
0
 public JavaScriptBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory)
     : base(fileWriterFactory, fileReaderFactory, debugStatusReader)
 {
 }
Exemple #26
0
 public CSSBundle(IDebugStatusReader debugStatusReader, IFileWriterFactory fileWriterFactory, IFileReaderFactory fileReaderFactory, IDirectoryWrapper directoryWrapper, IHasher hasher, IBundleCache bundleCache)
     : base(fileWriterFactory, fileReaderFactory, debugStatusReader, directoryWrapper, hasher, bundleCache)
 {
 }