Click or drag to resize

FileStreamFactory Class

A factory that can produce FileStream instances on demand. This type is used by classes that need to work with data from a stream from multiple threads simultaneously. They can use it to open the stream in each thread.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public class FileStreamFactory : StreamFactory

The FileStreamFactory type exposes the following members.

Constructors
  NameDescription
Public methodFileStreamFactory(FuncFileStream)
Initializes a new instance with a provided delegate. The given delegate must be safe to call from multiple threads simultaneously. In most situations, one of the other constructors should be used instead.
Public methodFileStreamFactory(String, FileMode)
Initializes a new instance of the factory that constructs a new FileStream with FileStream(String, FileMode) when OpenStream is called.
Public methodFileStreamFactory(String, FileMode, FileAccess)
Initializes a new instance of the factory that constructs a new FileStream with FileStream(String, FileMode, FileAccess) when OpenStream is called.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenFileStream
Opens a new FileStream.
Public methodOpenStream
Opens a new Stream.
(Overrides StreamFactoryOpenStream.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also