Remove the namespace
This commit is contained in:
parent
d65ca3beb1
commit
acf6cd1d0a
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user