IContentStreamFactory Interface

Summary

Provides streams to use for document content.
graph BT Type["IContentStreamFactory"] class Type type-node Implementing0["FileContentStreamFactory"]-.->Type click Implementing0 "/api/Wyam.Common.Documents/FileContentStreamFactory" Implementing1["MemoryContentStreamFactory"]-.->Type click Implementing1 "/api/Wyam.Common.Documents/MemoryContentStreamFactory"

Syntax

public interface 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