C# Class Brunet.Services.XmlRpc.XmlRpcManagerServer

.NET Remoting service that hosts the XmlRpcManager instances.
Exibir arquivo Open project: pstjuste/brunet Class Usage Examples

Public Methods

Method 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

Method 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 method

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.
return void

Add() public method

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
return void

Remove() public method

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

RemoveAll() public method

Suspends the service objects.
public RemoveAll ( ) : void
return void

Stop() public method

Stops this server.
public Stop ( ) : void
return void

XmlRpcManagerServer() public method

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.
return System