Brunet.Services.Coordinate.NCService.HandleRpc C# (CSharp) Method

HandleRpc() public method

public HandleRpc ( ISender caller, string method, IList args, object req_state ) : void
caller ISender
method string
args IList
req_state object
return void
    public void HandleRpc(ISender caller, string method, IList args, object req_state) {
      if( method == "Echo" ) {
        Echo();
        _rpc.SendResult(req_state, new object[]{});
      } 
      else if (method == "EchoVivaldiState" ) {
        Hashtable ht = EchoVivaldiState();
        _rpc.SendResult(req_state, ht);
      } 
      else if ( method == "ComputePathLatencyTo" ) {
        ComputePathLatencyTo( (AHAddress)AddressParser.Parse((string)args[0]), req_state);
      }
      else {
        throw new AdrException(-32601, "No Handler for method: " + method);
      }
    }