Ejemplo n.º 1
0
 protected FirebaseHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration, Uri authority = null)
 {
     Credentials   = credentials;
     Configuration = configuration;
     Authority     = authority;
     Client        = Configuration.HttpClientProxy(configuration);
 }
Ejemplo n.º 2
0
        public DatabaseRef(IDatabaseHttpClient httpClient, FirebaseSDKConfiguration configuration, string refPath, QueryBuilder queryBuilder)
        {
            if (string.IsNullOrWhiteSpace(refPath))
            {
                throw new ArgumentNullException(nameof(refPath));
            }

            Path = queryBuilder != null ? $"{refPath.TrimSlashes()}.json?{queryBuilder.ToQueryString()}" : $"{refPath.TrimSlashes()}.json";

            HttpClient = httpClient;
        }
Ejemplo n.º 3
0
        public DatabaseRef(IDatabaseHttpClient httpClient, FirebaseSDKConfiguration configuration, string refPath)
        {
            if (string.IsNullOrWhiteSpace(refPath))
            {
                throw new ArgumentNullException(nameof(refPath));
            }

            Path = $"{refPath.TrimSlashes()}.json";

            HttpClient = httpClient;
        }
 public TransientHttpClientProxy(FirebaseSDKConfiguration configuration) => _configuration = configuration;
        internal FirebaseClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
        {
            Configuration = configuration;

            Initialize(credentials);
        }
 public FirebaseClient(FirebaseSDKConfiguration configuration)
     : this(configuration.Credentials, configuration)
 {
 }
 public CloudMessagingHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
     : base(credentials, configuration, new Uri($"{configuration.CloudMessagingAuthority.TrimSlashes()}", UriKind.Absolute))
 {
 }
 public JwtAuthPayloadGenerator(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
 {
     _creadentials  = credentials;
     _configuration = configuration;
 }
 public FirebaseAuth(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
 {
     _configuration = configuration;
     _httpClient    = new AuthHttpClient(credentials, configuration);
 }
Ejemplo n.º 10
0
 public DatabaseHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
     : base(credentials, configuration, new Uri(configuration.RealtimeDatabaseAuthority, UriKind.Absolute))
 {
 }
Ejemplo n.º 11
0
 public AuthHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
     : base(credentials, configuration)
 {
     _jwtCustomTokenPayload = new CustomTokenPayloadGenerator(credentials, configuration);
     _jwtPayload            = new JwtAuthPayloadGenerator(credentials, configuration);
 }
 public FirebaseCloudMessaging(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
 => _httpClient = new CloudMessagingHttpClient(credentials, configuration);
Ejemplo n.º 13
0
 public StorageHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
     : base(credentials, configuration, new Uri($"{configuration.StorageBaseAuthority.TrimSlashes()}", UriKind.Absolute))
 {
 }
Ejemplo n.º 14
0
 public FirebaseStorage(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration)
 {
     _credentials   = credentials;
     _configuration = configuration;
     _httpClient    = new StorageHttpClient(credentials, configuration);
 }