DistributedItem Constructor (String, String, Stream, List ConnectionInfo , ItemBuildMode, Boolean, Int32)NetworkComms.Net Help
Instantiate a new DFS item which is complete.

Namespace: DistributedFileSystem
Assembly: DistributedFileSystem (in DistributedFileSystem.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public DistributedItem(
	string itemTypeStr,
	string itemIdentifier,
	Stream itemData,
	List<ConnectionInfo> seedConnectionInfoList,
	ItemBuildMode itemBuildMode,
	bool enableChunkChecksum = true,
	int itemBuildCascadeDepth = 1
)

Parameters

itemTypeStr
Type: OnlineSystem String
A category string which can be used to group distributed items together.
itemIdentifier
Type: OnlineSystem String
A unique identifier for this item, usually a file name
itemData
Type: OnlineSystem.IO Stream
A stream containing the data for this item
seedConnectionInfoList
Type: OnlineSystem.Collections.Generic List ConnectionInfo 
A list of connecitonInfo corresponding to peers that will act as seeds
itemBuildMode
Type: DistributedFileSystem ItemBuildMode
The build mode to be used for distributing this item, i.e. memory or disk, as a single continuous stream or blocks
enableChunkChecksum (Optional)
Type: OnlineSystem Boolean
If true checkSums will be validated for each chunk before it is integrated. Reduces the performance of the DFS.
itemBuildCascadeDepth (Optional)
Type: OnlineSystem Int32
The cascade depth to use when building this item. Default is 1
See Also