public GeneratorContext(DirectoryInfo?cacheFolder = null, DirectoryInfo?tempFolder = null, Func <object, string?>?objectToStingRepresentation = null)
 {
     this.CacheFolder   = cacheFolder ?? new DirectoryInfo("Cache");
     this.TempFolder    = tempFolder ?? new DirectoryInfo("Temp");
     this.EmptyMetadata = MetadataContainer.EmptyFromContext(this);
     this.objectToStingRepresentation = objectToStingRepresentation;
 }
Example #2
0
 IDocument IDocument.With(MetadataContainer metadata) => this.With(metadata);
Example #3
0
 public IDocument <T> With(MetadataContainer metadata) => new Document <T>(this.Value, this.Hash, this.Id, metadata, this.Context);
Example #4
0
 public IDocument <T> With(MetadataContainer metadata) => new DocumentLazy <T>(this.valueCallback, this.Hash, this.Id, metadata, this.Context);
Example #5
0
 public IDocument <Stream> With(MetadataContainer metadata) => new GitFileDocument(this.Id, this.Hash, this.createStreamCallback, metadata, this.Context);
Example #6
0
 private GitFileDocument(string id, string contentHash, Func <Stream> createStreamCallback, MetadataContainer metadata, GeneratorContext context) : base(id, metadata, contentHash, context)
 {
     this.createStreamCallback = createStreamCallback;
 }