Brunet.Connections.LocalConnectionOverlord.HandleRpc C# (CSharp) Метод

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

public HandleRpc ( ISender caller, string method, IList args, object rs ) : void
caller ISender
method string
args IList
rs object
Результат void
    public void HandleRpc(ISender caller, string method, IList args, object rs) {
      object result = null;
      try {
        if(method.Equals("GetInformation")) {
          result = GetInformation();
        }
        else {
          throw new Exception("Invalid method");
        }
      }
      catch (Exception e) {
        result = new AdrException(-32602, e);
     }
      _rpc.SendResult(rs, result);
    }
  }