title: Handling Server-side RtmpConnection.Invoke() when connecting with NetConnection as a client using FluorineFx
body: <p>I am trying to create a basic console app in order to stress test our FluorineFx based flash remoting server.</p>
  
  <p>I can connect fine but the server method I am calling invokes this client-side function:</p>
  
  <pre><code>connection.Invoke("onServerDataPush", new string[] { "someParam", "anotherParam" });
  </code></pre>
  
  <p>I am struggling to find out how I can expose this method to the connection. The NetConnection.Call() method allow you to pass in a callback but the result of this is always null and the NetConnection call fails with the following error:</p>
  
  <pre><code>Could not find a suitable method with name onServerDataPush
  </code></pre>
  
  <p>Here is my client-side code:</p>
  
  <pre><code>class Program
  {
      private NetConnection _netConnection;
  
      static void Main(string[] args)
      {
          var program = new Program();
          program.Connect();
          Console.ReadLine();
      }
  
      public void Connect()
      {
          _netConnection = new NetConnection();
          _netConnection.ObjectEncoding = ObjectEncoding.AMF3;
          _netConnection.OnConnect += netConnection_OnConnect;
          _netConnection.NetStatus += netConnection_NetStatus;
          _netConnection.Connect("rtmp://localhost:1935/MyApplication");
      }
  
      void netConnection_OnConnect(object sender, EventArgs e)
      {
          var responder = new Responder&lt;object&gt;(x =&gt;
                                                    {
                                                        var test = x;
                                                    });
  
          //The NetConnection object is connected now
          _netConnection.Call("MyServerMethod", responder, "someParameter");
      }
      void netConnection_NetStatus(object sender, NetStatusEventArgs e)
      {
          string level = e.Info["level"] as string;
      }
  }
  </code></pre>