Class ConnectionFactory
Inheritance
System.Object
ConnectionFactory
Inherited Members
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.Client.Connections
Assembly: MonoTorrent.dll
Syntax
public static class ConnectionFactory
Methods
Create(Uri)
Declaration
public static IConnection Create(Uri connectionUri)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | connectionUri |
Returns
| Type | Description |
|---|---|
| IConnection |
RegisterTypeForProtocol(String, Type)
Declaration
public static void RegisterTypeForProtocol(string protocol, Type connectionType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | protocol | |
| System.Type | connectionType |