Remove the namespace

This commit is contained in:
darrylsk 2017-09-15 15:55:19 -03:00
parent d65ca3beb1
commit acf6cd1d0a

View File

@ -4,10 +4,8 @@
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace RpcClient
public class RpcClient
{
public class RpcClient
{
private readonly IConnection connection;
private readonly IModel channel;
private readonly string replyQueueName;
@ -63,19 +61,4 @@ public void Close()
{
connection.Close();
}
}
public class Rpc
{
public static void Main()
{
var rpcClient = new RpcClient();
Console.WriteLine(" [x] Requesting fib(30)");
var response = rpcClient.Call("30");
Console.WriteLine(" [.] Got '{0}'", response);
rpcClient.Close();
}
}
}