DistributedItem MembersNetworkComms.Net Help
The DistributedItem type exposes the following members.

Public methodDistributedItem(ItemAssemblyConfig)
Instantiate a new DFS item which needs to be built.
Public methodDistributedItem(String, String, Stream, List ConnectionInfo , ItemBuildMode, Boolean, Int32)
Instantiate a new DFS item which is complete.
Back to Top

Public methodAccessItemBytes
Once the item has been fully assembled the completed bytes can be access via this method.
Public methodAddBuildLogLine
Add the provided string to the build log of this item
Public methodAssembleItem
Assemble this DFS item using the swarm
Public methodBuildChunkCheckSums
Uses the loaded stream and builds individual chunk checksums
Public methodBuildLog
Get the current build log for this DFS item
Public methodChunkAvailableLocally
Returns true if the requested chunk is available locally
Public methodCopyItemDataStream
Copies the contents of the item data stream to the provided destination stream
Public methodDispose
Dispose of this DFS item
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetChunkStream
Returns a StreamSendWrapper corresponding to the requested chunkIndex.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetItemStream
Returns a streamSendWrapper that contains the entire item
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodHandleIncomingChunkReply
Handle an incoming chunk reply
Public methodIncrementPushCount
Increments the item push count.
Public methodStatic memberLoad
Load the specified distributed item. Does not add the .DFSItem extension to the fileName
Public methodLocalItemComplete
Returns true once all chunks have been received and the item has been validated
Public methodLocalItemValid
Returns true if the item data validates correctly
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodSave
Save this distributed item (not including item data), adds .DFSItem extension, using the provided filename.
Public methodToString
Returns ItemTypeStr + ItemIdentifier
(Overrides OnlineObject ToString .)
Public methodUpdateBuildTarget
Updates the ItemBuildTarget
Back to Top

Public fieldItemClosed
True if this item has been closed. Can be used externally to cancel an AssembleItem.
Back to Top

Public propertyChunkCheckSums
Optional MD5 checksums for individual chunks. Useful for debugging build issues.
Public propertyChunkSizeInBytes
Maximum size of each chunk in bytes. The final chunk may be less than this value.
Public propertyItemBuildCascadeDepth
The cascade depth to use when building this item. Default is 1
Public propertyItemBuildCompleted
The DateTime this DFS item was successfully built.
Public propertyItemBuildMode
The build mode describing how the item should be built, i.e. memory or disk, as a single stream of multiple blocks
Public propertyItemBytesLength
Total item size in bytes.
Public propertyItemCheckSum
The MD5 checksum for the completed item. Used to validate a completed build.
Public propertyItemIdentifier
A unique string identifier for this DFS item. Usually a filename.
Public propertyItemTypeStr
A category for this DFS item. Allowed items to be grouped by item type.
Public propertyPushCount
The total number of times this item has been pushed.
Public propertySwarmChunkAvailability
Contains a record of which peers have which chunks of this DFS item
Public propertyTotalChunkSupplyCount
The total number of chunks pushed to peers
Public propertyTotalNumChunks
Total number of chunks for this item
Back to Top
See Also