コード例 #1
0
        public static void Raven(BusConfiguration endpointConfiguration)
        {
            //# throw new NotImplementedException("You need to configure your connection parameters");
            var connectionParameters = new NServiceBus.RavenDB.ConnectionParameters
            {
                Url = "Set_your_raven_url",
                // ApiKey = "Set_Your_API_key",
                // Credentials = null, // Set your credentials,
                // DatabaseName = "Set_your_database_name",
            };

            endpointConfiguration
                .UsePersistence<RavenDBPersistence>().
                SetDefaultDocumentStore(connectionParameters);
        }
コード例 #2
0
        public static void Raven(BusConfiguration endpointConfiguration)
        {
            //# throw new NotImplementedException("You need to configure your connection parameters");
            var connectionParameters = new NServiceBus.RavenDB.ConnectionParameters
            {
                Url = "Set_your_raven_url",
                // ApiKey = "Set_Your_API_key",
                // Credentials = null, // Set your credentials,
                // DatabaseName = "Set_your_database_name",
            };

            endpointConfiguration
            .UsePersistence <RavenDBPersistence>().
            SetDefaultDocumentStore(connectionParameters);
        }