C# Class Brunet.Services.XmlRpc.XmlRpcManagerServer

.NET Remoting service that hosts the XmlRpcManager instances.
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Méthode Description
Add ( CookComputing.XmlRpc.Node node ) : void

Adds the specified node to listen to XMLRPC proxy calls.

Uses a node's string version of Brunet address plus ".rem" as the relative Uri.

Add ( CookComputing.XmlRpc.Node node, string uri ) : void

Allows nodes to be registered by whatever URI the user provides

Remove ( CookComputing.XmlRpc.Node node ) : void

Stops the specified node from listening to XMLRPC proxy calls.

RemoveAll ( ) : void

Suspends the service objects.

Stop ( ) : void

Stops this server.

XmlRpcManagerServer ( int port ) : System

Initializes a new instance of the XmlRpcManagerServer class and registers it at the specified port on local machine.

Private Methods

Méthode Description
Add ( CookComputing.XmlRpc.Node node, RpcManager rpc, string uri ) : void

The overloaded method for now is used to allow RpcManager to be replaced by MockRpcManager in unit tests.

CheckAndSetDefaultManager ( ) : void

Checks and sets the default XmlRpcManager. Should only be called by Add and Remove.

Method Details

Add() public méthode

Adds the specified node to listen to XMLRPC proxy calls.
Uses a node's string version of Brunet address plus ".rem" as the relative Uri.
public Add ( CookComputing.XmlRpc.Node node ) : void
node CookComputing.XmlRpc.Node The node.
Résultat void

Add() public méthode

Allows nodes to be registered by whatever URI the user provides
public Add ( CookComputing.XmlRpc.Node node, string uri ) : void
node CookComputing.XmlRpc.Node
uri string
Résultat void

Remove() public méthode

Stops the specified node from listening to XMLRPC proxy calls.
public Remove ( CookComputing.XmlRpc.Node node ) : void
node CookComputing.XmlRpc.Node The node.
Résultat void

RemoveAll() public méthode

Suspends the service objects.
public RemoveAll ( ) : void
Résultat void

Stop() public méthode

Stops this server.
public Stop ( ) : void
Résultat void

XmlRpcManagerServer() public méthode

Initializes a new instance of the XmlRpcManagerServer class and registers it at the specified port on local machine.
public XmlRpcManagerServer ( int port ) : System
port int The port.
Résultat System