MemoryContentStreamFactory Class

Summary

Provides content streams that are stored in memory without pooling. This trades better performance for increased memory usage.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Documents
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IContentStreamFactory"] click Interface0 "/api/Wyam.Common.Documents/IContentStreamFactory" Type["MemoryContentStreamFactory"] class Type type-node

Syntax

public class MemoryContentStreamFactory : IContentStreamFactory

Methods

Name Value Summary
GetStream(IExecutionContext, string) Stream
Gets a System.IO.Stream that can be used for document content. If content is not null, the stream is initialized with the specified content. The position should be set to the beginning of the stream when returned.
GitHub