예제 #1
0
        public void Start(WaitHandle waitHandle)
        {
            var client = new ResbitClient("http://localhost:55672", "guest", "guest");

            Console.WriteLine(client.AlivenessTest.Get(""));

            waitHandle.WaitOne();
        }
예제 #2
0
파일: WhoAmI.cs 프로젝트: simoneb/Roger
        public void Start(WaitHandle waitHandle)
        {
            var client = new ResbitClient("http://localhost:55672", "guest", "guest");

            foreach (var property in (IDictionary <string, object>)client.WhoAmI.Get())
            {
                Console.WriteLine(property.Key);
            }

            waitHandle.WaitOne();
        }
예제 #3
0
        public static void GlobalFixtureSetup()
        {
            StartFederationProxy();
            StartAlternativePortProxy();

            Environment.SetEnvironmentVariable("RABBITMQ_SERVER", @"..\..\..\..\RabbitMQServer");
            Environment.SetEnvironmentVariable("RABBITMQ_SERVER_START_ARGS", "-setcookie RogerIntegrationTests");

            Broker = new RabbitBrokerAdmin(cookie: "RogerIntegrationTests")
            {
                StartupTimeout = 10000
            };
            BrokerHttp = new ResbitClient(Constants.HostName);

            TryStartBroker();

            EnsureBrokerRunning();

            SetupSecondaryVirtualHost();

            SetupFederationExchanges();
        }
예제 #4
0
파일: ResbitTest.cs 프로젝트: simoneb/Roger
 public void SetupBase()
 {
     Client = new ResbitClient(Constants.HostName, "guest", "guest");
 }
예제 #5
0
파일: ResbitTest.cs 프로젝트: simoneb/Roger
 public void SetupBase()
 {
     Client = new ResbitClient(Constants.HostName, "guest", "guest");
 }