Beispiel #1
0
 public MainService()
 {
     _config = new FirebaseConfig {
         AuthSecret = "8JSYGrG7FyQcz27bZlYU3mzMIGy3ylmIAzmbTK8p", BasePath = "https://aspnetcorefirebasetest.firebaseio.com/"
     };
     _firebaseClient = new FireSharp.FirebaseClient(_config);
 }
 public static void UpdateConfig()
 {
     config = new FirebaseConfig {
         AuthSecret = AuthSecretCode,
         BasePath   = BasePathURL
     };
 }
 public ThirdPartyConfig(string baseURL, string apiKey)
 {
     config = new FirebaseConfig {
         AuthSecret = apiKey,
         BasePath   = formatUrl(baseURL)
     };
 }
 /// <summary>
 /// Configure firebase connection
 /// </summary>
 public static void ConfigureFirebase()
 {
     config = new FirebaseConfig()
     {
         AuthSecret = "X2ALVqwVJ9t7M3xMptU4o2gbDhAMSUL0YXYFnD2G",
         BasePath   = "https://gymrepetitionprediction.firebaseio.com/"
     };
 }
Beispiel #5
0
 public void InitFirebase()
 {
     config = new FirebaseConfig {
         AuthSecret = "dNU6O9DNokjtAWzCkLGr3AlvjyviyI1Egdw2ld9S",
         BasePath   = "https://wallo-250b4.firebaseio.com/"
     };
     client = new FirebaseClient(config);
 }
Beispiel #6
0
        private static IEventFlowOptions ConfigureFirebase(
            this IEventFlowOptions eventFlowOptions,
            IFirebaseConfig firebaseConfig, bool useBackupStore)
        {
            var firebaseClient = new FirebaseClient(firebaseConfig);

            return(eventFlowOptions.ConfigureFirebase(() => firebaseClient, useBackupStore));
        }
 public DbHandler()
 {
     config = new FirebaseConfig {
         AuthSecret = "1wRJbNnc41nM318fYOCLCudiOzL4cLS6pFcSTxMN", BasePath = "https://pokemondatabase-4e361.firebaseio.com/"
     };
     client   = new FireSharp.FirebaseClient(config);
     response = null;
 }
Beispiel #8
0
 public FirebaseQuizManager()
 {
     config = new FirebaseConfig
     {
         BasePath = "https://lovequiz-1eebe.firebaseio.com/",
     };
     client = new FirebaseClient(config);
 }
Beispiel #9
0
 public BusinessService(IConfiguration configuration)
 {
     config = new FirebaseConfig
     {
         AuthSecret = configuration["FirebaseAuthSecret"],
         BasePath   = configuration["FirebaseBasePath"]
     };
 }
Beispiel #10
0
		public static void SetupDb() {
			fbConfig = new FirebaseConfig {
				AuthSecret = "FO85aksCBndB5fXAykNFQstlLqqYrHsiq4myZTQW", 
				BasePath = "https://scorching-heat-9815.firebaseio.com/"
			};

			FbClient = new FirebaseClient (fbConfig);
		}
Beispiel #11
0
 public Firebase()
 {
     config = new FirebaseConfig
     {
         AuthSecret = "8cRE1Gd0l1wHjdo2xOLMGBowt4196aAiLoDvBeFU",
         BasePath   = "https://my-project-1560234682747.firebaseio.com"
     };
     client = new FireSharp.FirebaseClient(config);
 }
Beispiel #12
0
 private void firebaseConfiqration()
 {
     config = new FirebaseConfig
     {
         AuthSecret = AuthSecret,
         BasePath   = BasePath
     };
     client = new FireSharp.FirebaseClient(config);
 }
Beispiel #13
0
 public FirebaseController()
 {
     Config = new FirebaseConfig
     {
         AuthSecret = "lwZV4HydSMJh1t080Ztuim5u4vcwIsfAcCT8fqbD",
         BasePath   = "https://csharp-example.firebaseio.com/",
     };
     _Client = new FirebaseClient(Config);
 }
Beispiel #14
0
        public static void SetupDb()
        {
            fbConfig = new FirebaseConfig {
                AuthSecret = "FO85aksCBndB5fXAykNFQstlLqqYrHsiq4myZTQW",
                BasePath   = "https://scorching-heat-9815.firebaseio.com/"
            };

            FbClient = new FirebaseClient(fbConfig);
        }
        public IFirebaseClient getClient()
        {
            IFirebaseConfig config = getConfig();
            IFirebaseClient client;

            client = new FireSharp.FirebaseClient(config);

            return(client);
        }
        public FirebaseActions(string url = "", string appSecret = "")
        {
            _firebaseConfig = new FirebaseConfig
            {
                AuthSecret = appSecret,
                BasePath   = url
            };

            _firebaseClient = new FirebaseClient(_firebaseConfig);
        }
Beispiel #17
0
        public FireBaseImplementation(string authSecret, string basePath)
        {
            config = new FirebaseConfig
            {
                AuthSecret = authSecret,
                BasePath   = basePath
            };

            client = new FirebaseClient(config);
        }
Beispiel #18
0
        //static FirebaseService()
        //{
        //    config = new FirebaseConfig
        //    {
        //        AuthSecret = "AIzaSyAmsau3mR2lkMisbgR3xsjIemoKoEHTRXA",
        //        BasePath = "https://deseo-gourmet-app.firebaseio.com/"
        //    };

        //    client = new FirebaseClient(config);
        //}
        static FirebaseService()
        {
            config = new FirebaseConfig
            {
                AuthSecret = "AIzaSyAmsau3mR2lkMisbgR3xsjIemoKoEHTRXA",
                BasePath   = "https://barrage-1c56f.firebaseio.com/"
            };

            client = new FirebaseClient(config);
        }
Beispiel #19
0
        public EmployeeRepository(string authSecret, string basePath)
        {
            _config = new FirebaseConfig
            {
                AuthSecret = authSecret,
                BasePath   = basePath,
            };

            _client = new FirebaseClient(_config);
        }
Beispiel #20
0
 public Program()
 {
     config = new FirebaseConfig
     {
         //Auth secret can be found at: https://console.firebase.google.com/project/csharp-subhadb/settings/serviceaccounts/databasesecrets
         AuthSecret = "idgLpOJl3yTB0wjn58YFqxU0D7HkrBpKBtEzzfip",
         BasePath   = "https://csharp-subhadb.firebaseio.com/"
     };
     client = new FirebaseClient(config);
 }
Beispiel #21
0
 public TruckerController(IHubContext <FreightHub> hubContext)
 {
     _truckerServiceWebApp = new TruckerServiceWebApp();
     _freightServiceWebApp = new FreightServiceWebApp();
     _hubContext           = hubContext;
     _firebaseConfig       = new FirebaseConfig()
     {
         AuthSecret = "Ch4ZQYFFC0pvjvVWG2aTULVqnEdQ4hU590WU5S3u",
         BasePath   = "https://soa-freight-default-rtdb.firebaseio.com/"
     };
 }
Beispiel #22
0
 public FireRepo(string auth, string baseurl, string path)
 {
     this.auth    = auth;
     this.baseurl = baseurl;
     this.path    = path;
     cfg          = new FirebaseConfig()
     {
         AuthSecret = auth, BasePath = baseurl
     };
     client = new FirebaseClient(cfg);
 }
Beispiel #23
0
        public DatabaseHandler()
        {
            config = new FirebaseConfig
            {
                // Firebase database config variables
                AuthSecret = "K4VnUigpt5m9CJmMTOchcpTWSDpNNBaDHhyWxskt",
                BasePath   = "https://szakdolgozat-szentgyorgyitamas-default-rtdb.firebaseio.com/"
            };

            client = new FireSharp.FirebaseClient(config);
        }
Beispiel #24
0
        internal RequestManager(IFirebaseConfig config)
        {
            _config = config;
            var handler = new HttpClientHandler
            {
                AllowAutoRedirect = true
            };

            _client = new HttpClient(handler, true)
            {
                BaseAddress = new Uri(_config.BasePath),
                Timeout     = TimeSpan.FromMinutes(_config.TimeoutInMinute)
            };
        }
        public DAOFireBaseProvider()
        {
            config         = new FirebaseConfig();
            firebaseClient = new FirebaseClient(config);

            config.AuthSecret = ConfigurationManager.AppSettings["AmazonFireBaseKey"];
            config.BasePath   = ConfigurationManager.AppSettings["AmazonFireBaseURL"];

            firebaseClient = new FireSharp.FirebaseClient(config);
            if (firebaseClient != null)
            {
                Console.WriteLine("Connection Succeeded!");
            }
        }
        static DAOFireBaseProvider()
        {
            config = new FirebaseConfig
            {
                AuthSecret = ConfigurationManager.AppSettings["secret"],
                BasePath   = ConfigurationManager.AppSettings["URL"]
            };

            firebaseClient = new FireSharp.FirebaseClient(config);
            if (firebaseClient != null)
            {
                Console.WriteLine("Connection Succeeded!");
            }
        }
Beispiel #27
0
 public FireBaseConnector()
 {
     fcon = new FirebaseConfig()
     {
         AuthSecret = "KVFiAucq7n7LKlaubP47a30fXKeNDopS1u2nL1NU",
         BasePath   = "https://fragmenttest-343f9.firebaseio.com/"
     };
     try
     {
         client = new FireSharp.FirebaseClient(fcon);
     }
     catch
     {
     }
 }
Beispiel #28
0
        public LeaderboardController(Gamemode gameMode)
        {
            // Configure the firebase configuration for the firesharp plugin
            this.firebaseConfig = new FirebaseConfig()
            {
                AuthSecret = "biDqRu7XIL1v3Fl9vTZxRBWQwg4LJot1TMih1wj4",
                BasePath   = "https://vsp-memory-leaderboard-7a822.firebaseio.com/",
            };

            // Create a new firebase client with the firebase configuration
            this.firebaseClient = new FirebaseClient(this.firebaseConfig);

            // Set the gamemode to the passed gamemode
            this.gameMode = gameMode;
        }
Beispiel #29
0
        static void Main()
        {
            config = new FirebaseConfig
            {
                AuthSecret = "5mEJmENtkosiLf6Dd37yjc4RKXxONSsRuiNWKRJV",
                BasePath = "https://foreveralone.firebaseio.com/"
            };
            
            client = new FirebaseClient(config);
            Debug.WriteLine("Hell");
            getValue();

            
            working();
        }
Beispiel #30
0
        internal RequestManager(IFirebaseConfig config)
        {
            _config = config;//?? throw new ArgumentNullException(nameof(config));

            _httpClient = new HttpClient(new AutoRedirectHttpClientHandler());

            var basePath = _config.BasePath.EndsWith("/") ? _config.BasePath : _config.BasePath + "/";

            _httpClient.BaseAddress = new Uri(basePath);

            if (_config.RequestTimeout.HasValue)
            {
                _httpClient.Timeout = _config.RequestTimeout.Value;
            }
        }
Beispiel #31
0
        internal RequestManager(IFirebaseConfig config)
        {
            if (config == null) throw new ArgumentNullException(nameof(config));

            _config = config;

            _httpClient = new HttpClient(new HttpClientHandler { AllowAutoRedirect = true });

            var basePath = _config.BasePath.EndsWith("/") ? _config.BasePath : _config.BasePath + "/";
            _httpClient.BaseAddress = new Uri(basePath);

            if (_config.RequestTimeout.HasValue)
            {
                _httpClient.Timeout = _config.RequestTimeout.Value;
            }
        }
Beispiel #32
0
        public restAPI()
        {
            _config     = iconfig.config;
            client      = new FireSharp.FirebaseClient(_config);
            _httpClient = new HttpClient(new HttpClientHandler {
                AllowAutoRedirect = true
            });
            var basePath = _config.BasePath.EndsWith("/") ? _config.BasePath : _config.BasePath + "/";

            _httpClient.BaseAddress = new Uri(basePath);

            if (_config.RequestTimeout.HasValue)
            {
                _httpClient.Timeout = _config.RequestTimeout.Value;
            }
        }
 public bool Connect()
 {
     try
     {
         this._config = new FirebaseConfig
         {
             AuthSecret = this._secret,
             BasePath   = this._url
         };
         this.client = new FirebaseClient(this._config);
         return(true);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         return(false);
     }
 }
Beispiel #34
0
 internal RequestManager(IFirebaseConfig config)
 {
     _config = config;
 }
Beispiel #35
0
            public Interaction(string username)
            {
                //Set the username member
                this.username = username;

                //Instantiate the default config
                config = new FirebaseConfig
                {
                    AuthSecret = "h2X1OAqY2EOs0vIsyhomap4PKS4vMjnQyv57tEJd",
                    BasePath = "https://firesharing.firebaseio.com/"
                };

                //Instantiate the Firebase client using the above config
                client = new FirebaseClient(config);

                //Define the base url for the user
                user_url = basename + username;

                //Prepare details for delivery
                details = new Details();
            }
        public MainWindow()
        {
            InitializeComponent();
            config = new FirebaseConfig
            {
                AuthSecret = "5mEJmENtkosiLf6Dd37yjc4RKXxONSsRuiNWKRJV",
                BasePath = "https://foreveralone.firebaseio.com/"
            };

            client = new FirebaseClient(config);
            Debug.WriteLine("Hell");
            getValue();
            working();
   
        }