Show / Hide Table of Contents

Class ProtocolRegistry

Metadata on IPeerProtocol.

Inheritance
Object
ProtocolRegistry
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PeerTalk.Protocols
Assembly: PeerTalk.dll
Syntax
public static class ProtocolRegistry

Fields

| Improve this Doc View Source

Protocols

All the peer protocols.

Declaration
public static Dictionary<string, Func<IPeerProtocol>> Protocols
Field Value
Type Description
Dictionary<String, Func<IPeerProtocol>>
Remarks

The key is the name and version of the peer protocol, like "/multiselect/1.0.0". The value is a Func that returns an new instance of the peer protocol.

Methods

| Improve this Doc View Source

Deregister(String)

Remove the specified protocol.

Declaration
public static void Deregister(string protocolName)
Parameters
Type Name Description
String protocolName

The protocol name to remove.

| Improve this Doc View Source

Register<T>()

Register a new protocol.

Declaration
public static void Register<T>()
    where T : IPeerProtocol, new()
Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX