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

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

            return(eventFlowOptions
                   .ConfigureFirebase(config, useBackupStore));
        }
Esempio n. 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));
        }