Creates a content provider from a delegate that returns a
Stream
to use on each content request. A new stream should be returned on each request
since it may be read concurrently.
- Namespace
- Statiq
.Common - Containing Type
- I
Execution Context Get Content Provider Extensions
Syntax
public static IContentProvider GetContentProvider(this IExecutionContext executionContext, Func<Stream> getStream, string mediaType)
Parameters
Name | Type | Description |
---|---|---|
executionContext | IExecutionContext | |
getStream | Func |
|
mediaType | string |
Return Value
Type | Description |
---|---|
IContentProvider |