예제 #1
0
        public RavenMqServer(InMemoryRavenConfiguration settings)
        {
            settings.LoadLoggingSettings();
            queues = new Queues(settings);

            try
            {
                server = new QueuesHttpServer(settings, queues);
                server.Start();

                serverConnection = new ServerConnection(settings.SubscriptionPort, new QueuesSubscriptionIntegration(queues));
                serverConnection.Start();
            }
            catch (Exception)
            {
                queues.Dispose();
                queues = null;

                throw;
            }
        }
예제 #2
0
        public RavenMqServer(InMemoryRavenConfiguration settings)
        {
            settings.LoadLoggingSettings();
            queues = new Queues(settings);

            try
            {
                server = new QueuesHttpServer(settings, queues);
                server.Start();

                serverConnection = new ServerConnection(settings.SubscriptionPort,new QueuesSubscriptionIntegration(queues));
                serverConnection.Start();
            }
            catch (Exception)
            {
                queues.Dispose();
                queues = null;

                throw;
            }
        }