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; } }
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; } }