NodeContent.CreateDelayedWriteContent Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 7.0.9083)
CreateDelayedWriteContent(Stream)
Method creates read/delayed write content from the given stream. Use this method when following is desired/acceptable behavior:
- Underlying stream does not support immediate writing to the file.
- When NodeContent previously returned from this method is disposed and underlying stream has been changed, then the method Rebex.IO.FileSystem.ReadWriteFileSystemProvider.SaveContent in the ReadWriteFileSystemProvider is called.
Following events are raised in the FileSystemNotifier:
Declaration
public static NodeContent CreateDelayedWriteContent(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Stream containing the content of the node. |
Returns
Type | Description |
---|---|
NodeContent | New read/delayed write content. |