Exemplo n.º 1
0
        protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator)
        {
            base.ConfigureInMemoryBus(configurator);

            Client = new MongoClient("mongodb://127.0.0.1");

            Database = Client.GetDatabase(EventDatabaseName);

            _convention = new MassTransitMongoDbConventions();
        }
Exemplo n.º 2
0
        protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator)
        {
            base.ConfigureBus(configurator);

            var builder = new MongoUrlBuilder
            {
                DatabaseName       = EventDatabaseName,
                Server             = new MongoServerAddress("localhost"),
                Username           = "******",
                Password           = "******",
                ConnectTimeout     = TimeSpan.FromSeconds(30),
                ConnectionMode     = ConnectionMode.Automatic,
                GuidRepresentation = GuidRepresentation.Standard
            };

            var url = builder.ToMongoUrl();

            Client = new MongoClient("mongodb://127.0.0.1");

            Database = Client.GetDatabase(EventDatabaseName);

            _convention = new MassTransitMongoDbConventions();
        }
Exemplo n.º 3
0
        public void MongoDbTestFixtureSetup()
        {
            var builder = new MongoUrlBuilder
            {
                DatabaseName       = EventDatabaseName,
                Server             = new MongoServerAddress("localhost", 9001),
                Username           = "******",
                Password           = "******",
                ConnectTimeout     = TimeSpan.FromSeconds(30),
                ConnectionMode     = ConnectionMode.Automatic,
                GuidRepresentation = GuidRepresentation.Standard
            };

            MongoUrl url = builder.ToMongoUrl();

            Client = new MongoClient(url);

            Server = Client.GetServer();

            Database = Server.GetDatabase(EventDatabaseName);

            _convention = new MassTransitMongoDbConventions();
        }
Exemplo n.º 4
0
        protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator)
        {
            base.ConfigureBus(configurator);

            var builder = new MongoUrlBuilder
            {
                DatabaseName = EventDatabaseName,
                Server = new MongoServerAddress("localhost"),
                Username = "******",
                Password = "******",
                ConnectTimeout = TimeSpan.FromSeconds(30),
                ConnectionMode = ConnectionMode.Automatic,
                GuidRepresentation = GuidRepresentation.Standard
            };

            var url = builder.ToMongoUrl();

            Client = new MongoClient("mongodb://127.0.0.1");

            Database = Client.GetDatabase(EventDatabaseName);

            _convention = new MassTransitMongoDbConventions();
        }
        public void MongoDbTestFixtureSetup()
        {
            var builder = new MongoUrlBuilder
                {
                    DatabaseName = EventDatabaseName,
                    Server = new MongoServerAddress("localhost", 9001),
                    Username = "******",
                    Password = "******",
                    ConnectTimeout = TimeSpan.FromSeconds(30),
                    ConnectionMode = ConnectionMode.Automatic,
                    GuidRepresentation = GuidRepresentation.Standard
                };

            MongoUrl url = builder.ToMongoUrl();

            Client = new MongoClient(url);

            Server = Client.GetServer();

            Database = Server.GetDatabase(EventDatabaseName);

            _convention = new MassTransitMongoDbConventions();
        }