Example #1
0
 /// <summary>
 /// Callback invocation using a string address, address format example - 127.0.0.1:12200?key1=value1&key2=value2 <br>
 /// You can specify an implementation of <seealso cref="InvokeCallback"/> to get the result.
 /// <para>
 /// Notice:<br>
 ///   <ol>
 ///   <li><b>DO NOT modify the request object concurrently when this method is called.</b></li>
 ///   <li>When do invocation, use the string address to find a available client connection, if none then throw exception</li>
 ///   <li>Unlike rpc client, address arguments takes no effect here, for rpc server will not create connection.</li>
 ///   </ol>
 ///
 /// </para>
 /// </summary>
 /// <param name="addr"> </param>
 /// <param name="request"> </param>
 /// <param name="invokeCallback"> </param>
 /// <param name="timeoutMillis"> </param>
 /// <exception cref="RemotingException"> </exception>
 /// <exception cref="ThreadInterruptedException"> </exception>
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: public void invokeWithCallback(final String addr, final Object request, final InvokeCallback invokeCallback, final int timeoutMillis) throws exception.RemotingException, ThreadInterruptedException
 //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
 public virtual void invokeWithCallback(string addr, object request, InvokeCallback invokeCallback, int timeoutMillis)
 {
     check();
     rpcRemoting.invokeWithCallback(addr, request, null, invokeCallback, timeoutMillis);
 }
Example #2
0
 //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
 //ORIGINAL LINE: @Override public void invokeWithCallback(final String address, final Object request, final InvokeCallback invokeCallback, final int timeoutMillis) throws exception.RemotingException, ThreadInterruptedException
 //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
 public override void invokeWithCallback(string address, object request, InvokeCallback invokeCallback, int timeoutMillis)
 {
     rpcRemoting.invokeWithCallback(address, request, null, invokeCallback, timeoutMillis);
 }