File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
FirebaseAdmin/FirebaseAdmin Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 15
15
using System ;
16
16
using System . Collections . Generic ;
17
17
using Google . Apis . Auth . OAuth2 ;
18
+ using Google . Apis . Http ;
18
19
19
20
namespace FirebaseAdmin
20
21
{
@@ -35,6 +36,7 @@ internal AppOptions(AppOptions options)
35
36
this . Credential = options . Credential ;
36
37
this . ProjectId = options . ProjectId ;
37
38
this . ServiceAccountId = options . ServiceAccountId ;
39
+ this . ClientFactory = options . ClientFactory ;
38
40
}
39
41
40
42
/// <summary>
@@ -58,5 +60,10 @@ internal AppOptions(AppOptions options)
58
60
/// JSON.</para>
59
61
/// </summary>
60
62
public string ServiceAccountId { get ; set ; }
63
+
64
+ /// <summary>
65
+ /// Gets or sets the HttpClientFactory to use when making Firebase requirests.
66
+ /// </summary>
67
+ public HttpClientFactory ClientFactory { get ; set ; } = new HttpClientFactory ( ) ;
61
68
}
62
69
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public sealed class FirebaseMessaging : IFirebaseService
30
30
private FirebaseMessaging ( FirebaseApp app )
31
31
{
32
32
this . messagingClient = new FirebaseMessagingClient (
33
- new HttpClientFactory ( ) , app . Options . Credential , app . GetProjectId ( ) ) ;
33
+ app . Options . ClientFactory , app . Options . Credential , app . GetProjectId ( ) ) ;
34
34
}
35
35
36
36
/// <summary>
You can’t perform that action at this time.
0 commit comments