Click or drag to resize
Akka.NETFileIOFromFile Method
Creates a Source from a Files contents. Emitted elements are chunkSize sized ByteString elements, except the final element, which will be up to chunkSize in size. You can configure the default dispatcher for this Source by changing the "akka.stream.blocking-io-dispatcher" or set it for a given Source by using ActorAttributes. It materializes a TaskTResult of IOResult containing the number of bytes read from the source file upon completion, and a possible exception if IO operation was not completed successfully.

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static Source<ByteString, Task<IOResult>> FromFile(
	FileInfo f,
	int chunkSize = 8192
)

Parameters

f
Type: System.IOFileInfo
the File to read from
chunkSize (Optional)
Type: SystemInt32
the size of each read operation, defaults to 8192

Return Value

Type: SourceByteString, TaskIOResult
TBD
See Also