protected FirebaseHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration, Uri authority = null) { Credentials = credentials; Configuration = configuration; Authority = authority; Client = Configuration.HttpClientProxy(configuration); }
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; }
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); }
public DatabaseHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration) : base(credentials, configuration, new Uri(configuration.RealtimeDatabaseAuthority, UriKind.Absolute)) { }
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);
public StorageHttpClient(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration) : base(credentials, configuration, new Uri($"{configuration.StorageBaseAuthority.TrimSlashes()}", UriKind.Absolute)) { }
public FirebaseStorage(IServiceAccountCredentials credentials, FirebaseSDKConfiguration configuration) { _credentials = credentials; _configuration = configuration; _httpClient = new StorageHttpClient(credentials, configuration); }