Example #1
0
        private static IEventFlowOptions ConfigureFirebase(
            this IEventFlowOptions eventFlowOptions,
            IFirebaseConfig firebaseConfig, bool useBackupStore)
        {
            var firebaseClient = new FirebaseClient(firebaseConfig);

            return(eventFlowOptions.ConfigureFirebase(() => firebaseClient, useBackupStore));
        }
Example #2
0
        public static IEventFlowOptions ConfigureFirebase(
            this IEventFlowOptions eventFlowOptions,
            string firebasePath,
            bool useBackupStore)
        {
            IFirebaseConfig config = new FirebaseConfig()
            {
                BasePath = firebasePath,
            };

            return(eventFlowOptions
                   .ConfigureFirebase(config, useBackupStore));
        }
Example #3
0
        public static IEventFlowOptions ConfigureFirebase(
            this IEventFlowOptions eventFlowOptions,
            string firebasePath,
            string mongoDbConnectionString,
            string mongoDbDatabase)
        {
            IFirebaseConfig config = new FirebaseConfig()
            {
                BasePath = firebasePath
            };

            return(eventFlowOptions
                   .ConfigureFirebase(config, true)
                   .ConfigureMongoDb(mongoDbConnectionString, mongoDbDatabase));
        }