summaryrefslogtreecommitdiff
path: root/FireBase/FirebaseOptions.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-11 23:38:13 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-11 23:38:13 +0200
commit2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (patch)
treec3b34ccb2737e347a73768536895cbbaab13cc01 /FireBase/FirebaseOptions.cs
parentec991104f56e90d7bb2878da2fe6ed4e585dfc46 (diff)
parentaf74efccf8d21e6151022b71f3cacd3fa83024ee (diff)
Merge branch 'rework-backend'
Diffstat (limited to 'FireBase/FirebaseOptions.cs')
-rw-r--r--FireBase/FirebaseOptions.cs76
1 files changed, 0 insertions, 76 deletions
diff --git a/FireBase/FirebaseOptions.cs b/FireBase/FirebaseOptions.cs
deleted file mode 100644
index 9905956..0000000
--- a/FireBase/FirebaseOptions.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-namespace Firebase.Database
-{
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Threading.Tasks;
-
- using Firebase.Database.Offline;
-
- using Newtonsoft.Json;
-
- public class FirebaseOptions
- {
- public FirebaseOptions()
- {
- this.OfflineDatabaseFactory = (t, s) => new Dictionary<string, OfflineEntry>();
- this.SubscriptionStreamReaderFactory = s => new StreamReader(s);
- this.JsonSerializerSettings = new JsonSerializerSettings();
- this.SyncPeriod = TimeSpan.FromSeconds(10);
- }
-
- /// <summary>
- /// Gets or sets the factory for Firebase offline database. Default is in-memory dictionary.
- /// </summary>
- public Func<Type, string, IDictionary<string, OfflineEntry>> OfflineDatabaseFactory
- {
- get;
- set;
- }
-
- /// <summary>
- /// Gets or sets the method for retrieving auth tokens. Default is null.
- /// </summary>
- public Func<Task<string>> AuthTokenAsyncFactory
- {
- get;
- set;
- }
-
- /// <summary>
- /// Gets or sets the factory for <see cref="TextReader"/> used for reading online streams. Default is <see cref="StreamReader"/>.
- /// </summary>
- public Func<Stream, TextReader> SubscriptionStreamReaderFactory
- {
- get;
- set;
- }
-
- /// <summary>
- /// Gets or sets the json serializer settings.
- /// </summary>
- public JsonSerializerSettings JsonSerializerSettings
- {
- get;
- set;
- }
-
- /// <summary>
- /// Gets or sets the time between synchronization attempts for pulling and pushing offline entities. Default is 10 seconds.
- /// </summary>
- public TimeSpan SyncPeriod
- {
- get;
- set;
- }
-
- /// <summary>
- /// Specify if token returned by factory will be used as "auth" url parameter or "access_token".
- /// </summary>
- public bool AsAccessToken
- {
- get;
- set;
- }
- }
-}