FileSystemNotifier.GetContentCompleted Event
Namespace: Rebex.IO.FileSystem.Notifications
Assembly: Rebex.FileSystem.dll (version 7.0.9147)
Occurs before the File
When the virtual file system is used in the FileServer component, then the server session, which contains information about the user and the active connection, can be accessed using Current property in the handler of this event.
Syntax
public event EventHandler<GetContentEventArgs> GetContentCompleted
Returns
Type | Description |
---|---|
Event |
Remarks
When the event handler provides a new value in the Result
myFileSystemProvider.FileSystemNotifier.GetContentCompleted += (sender, args) =>
{
//Dispose original content
args.ResultContent.Dispose();
// Prepare new content
//Replace content
args.ResultContent = NodeContent.CreateImmediateWriteContent(new MemoryStream());
};