C# Class Persistence.KademliaResource

Inheritance: IDocumentType, ILoadable
Mostra file Open project: zencoders/sambatyon Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetAsDatabaseType ( ) : dynamic

Returns the current object because this is ready to be loaded in the repository.

GetDatabaseType ( ) : Type

Returns the type reference for the database type

GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Method used for serialization purpose

KademliaResource ( ) : System

Default constructor

KademliaResource ( CompleteTag tag ) : System

Main Constructor of the resource. This initializes the fields with the given values

KademliaResource ( SerializationInfo info, StreamingContext ctxt ) : System

Method used for serialization purpose

KademliaResource ( string filename ) : System

Constructor that initializes the suppliers list with the given Urls and fill tag information with data read from the filename.

LoadFromDatabaseType ( dynamic data ) : bool

Loads data from a dynamic object loaded from repository

MergeTo ( KademliaResource other ) : bool

Method that merges the Dht Elements of the current resource with the ones of an another resource.

Method Details

GetAsDatabaseType() public method

Returns the current object because this is ready to be loaded in the repository.
public GetAsDatabaseType ( ) : dynamic
return dynamic

GetDatabaseType() public method

Returns the type reference for the database type
public GetDatabaseType ( ) : Type
return System.Type

GetObjectData() public method

Method used for serialization purpose
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

KademliaResource() public method

Default constructor
public KademliaResource ( ) : System
return System

KademliaResource() public method

Main Constructor of the resource. This initializes the fields with the given values
public KademliaResource ( CompleteTag tag ) : System
tag CompleteTag Tag Information
return System

KademliaResource() public method

Method used for serialization purpose
public KademliaResource ( SerializationInfo info, StreamingContext ctxt ) : System
info System.Runtime.Serialization.SerializationInfo
ctxt System.Runtime.Serialization.StreamingContext
return System

KademliaResource() public method

Constructor that initializes the suppliers list with the given Urls and fill tag information with data read from the filename.
public KademliaResource ( string filename ) : System
filename string Filename from whom extract the tag information
return System

LoadFromDatabaseType() public method

Loads data from a dynamic object loaded from repository
public LoadFromDatabaseType ( dynamic data ) : bool
data dynamic Object loaded from Repository
return bool

MergeTo() public method

Method that merges the Dht Elements of the current resource with the ones of an another resource.
public MergeTo ( KademliaResource other ) : bool
other KademliaResource The other resource
return bool