C# Класс Brunet.Services.XmlRpc.XmlRpcManagerServer

.NET Remoting service that hosts the XmlRpcManager instances.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Add() публичный Метод

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.
Результат void

Add() публичный Метод

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
Результат void

Remove() публичный Метод

Stops the specified node from listening to XMLRPC proxy calls.
public Remove ( CookComputing.XmlRpc.Node node ) : void
node CookComputing.XmlRpc.Node The node.
Результат void

RemoveAll() публичный Метод

Suspends the service objects.
public RemoveAll ( ) : void
Результат void

Stop() публичный Метод

Stops this server.
public Stop ( ) : void
Результат void

XmlRpcManagerServer() публичный Метод

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.
Результат System