LockingStreamWrapper Class
Provides a wrapper around a stream that locks the stream during concurrent access.
Namespace
Statiq.Common
Interfaces
  • IDisposable
Base Types
  • object
Derived Types
graph BT Type-->Base0["object"] Type-.->Interface0["IDisposable"] Type["LockingStreamWrapper"] class Type type-node Derived0["StreamContent"]-->Type click Derived0 "/api/Statiq.Common/StreamContent"

Syntax

public class LockingStreamWrapper : IDisposable

Constructors

Properties

Name Property Type Summary
Stream Stream

Methods

Name Return Value Summary
Dispose() void
GetLength() long
Gets the length of the wrapped stream without locking it.
GetStream() Stream
Gets the wrapped stream and locks access until it's disposed. The returned stream should be disposed after use as soon as possible.

Extension Methods