Show / Hide Table of Contents

Class TorrentCreator

Inheritance
System.Object
EditableTorrent
TorrentCreator
Inherited Members
EditableTorrent.Announce
EditableTorrent.Announces
EditableTorrent.CanEditSecureMetadata
EditableTorrent.Comment
EditableTorrent.CreatedBy
EditableTorrent.Encoding
EditableTorrent.InfoDict
EditableTorrent.Metadata
EditableTorrent.PieceLength
EditableTorrent.Private
EditableTorrent.Publisher
EditableTorrent.PublisherUrl
EditableTorrent.CheckCanEditSecure()
EditableTorrent.GetCustom(BEncodedString)
EditableTorrent.GetCustomSecure(BEncodedString)
EditableTorrent.SetCustom(BEncodedString, BEncodedValue)
EditableTorrent.SetCustomSecure(BEncodedString, BEncodedValue)
EditableTorrent.RemoveCustom(BEncodedString)
EditableTorrent.RemoveCustomSecure(BEncodedString)
EditableTorrent.GetDictionary(BEncodedDictionary, BEncodedString)
EditableTorrent.GetLong(BEncodedDictionary, BEncodedString)
EditableTorrent.GetString(BEncodedDictionary, BEncodedString)
EditableTorrent.SetDictionary(BEncodedDictionary, BEncodedString, BEncodedDictionary)
EditableTorrent.SetLong(BEncodedDictionary, BEncodedString, Int64)
EditableTorrent.SetString(BEncodedDictionary, BEncodedString, String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MonoTorrent
Assembly: MonoTorrent.dll
Syntax
public class TorrentCreator : EditableTorrent

Constructors

TorrentCreator()

Declaration
public TorrentCreator()

Properties

GetrightHttpSeeds

Declaration
public List<string> GetrightHttpSeeds { get; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

StoreMD5

Declaration
public bool StoreMD5 { get; set; }
Property Value
Type Description
System.Boolean

Methods

Create(ITorrentFileSource)

Declaration
public BEncodedDictionary Create(ITorrentFileSource fileSource)
Parameters
Type Name Description
ITorrentFileSource fileSource
Returns
Type Description
BEncodedDictionary

Create(ITorrentFileSource, Stream)

Declaration
public void Create(ITorrentFileSource fileSource, Stream stream)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.IO.Stream stream

Create(ITorrentFileSource, String)

Declaration
public void Create(ITorrentFileSource fileSource, string savePath)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.String savePath

CreateAsync(ITorrentFileSource)

Declaration
public Task<BEncodedDictionary> CreateAsync(ITorrentFileSource fileSource)
Parameters
Type Name Description
ITorrentFileSource fileSource
Returns
Type Description
System.Threading.Tasks.Task<BEncodedDictionary>

CreateAsync(ITorrentFileSource, Stream)

Declaration
public Task CreateAsync(ITorrentFileSource fileSource, Stream stream)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.IO.Stream stream
Returns
Type Description
System.Threading.Tasks.Task

CreateAsync(ITorrentFileSource, Stream, CancellationToken)

Declaration
public Task CreateAsync(ITorrentFileSource fileSource, Stream stream, CancellationToken token)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.IO.Stream stream
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task

CreateAsync(ITorrentFileSource, String)

Declaration
public Task CreateAsync(ITorrentFileSource fileSource, string savePath)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.String savePath
Returns
Type Description
System.Threading.Tasks.Task

CreateAsync(ITorrentFileSource, String, CancellationToken)

Declaration
public Task CreateAsync(ITorrentFileSource fileSource, string savePath, CancellationToken token)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.String savePath
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task

CreateAsync(ITorrentFileSource, CancellationToken)

Declaration
public Task<BEncodedDictionary> CreateAsync(ITorrentFileSource fileSource, CancellationToken token)
Parameters
Type Name Description
ITorrentFileSource fileSource
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task<BEncodedDictionary>

CreateReader()

Declaration
protected virtual IPieceWriter CreateReader()
Returns
Type Description
IPieceWriter

RecommendedPieceSize(IEnumerable<ITorrentFileInfo>)

Declaration
public static int RecommendedPieceSize(IEnumerable<ITorrentFileInfo> files)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ITorrentFileInfo> files
Returns
Type Description
System.Int32

RecommendedPieceSize(IEnumerable<FileMapping>)

Declaration
public static int RecommendedPieceSize(IEnumerable<FileMapping> files)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<FileMapping> files
Returns
Type Description
System.Int32

RecommendedPieceSize(IEnumerable<String>)

Declaration
public static int RecommendedPieceSize(IEnumerable<string> files)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> files
Returns
Type Description
System.Int32

RecommendedPieceSize(Int64)

Declaration
public static int RecommendedPieceSize(long totalSize)
Parameters
Type Name Description
System.Int64 totalSize
Returns
Type Description
System.Int32

Events

Hashed

Declaration
public event EventHandler<TorrentCreatorEventArgs> Hashed
Event Type
Type Description
System.EventHandler<TorrentCreatorEventArgs>
In This Article
Back to top Generated by DocFX