Firebase_Implementation #135
@ -202,6 +202,13 @@ builder.Services.AddScoped<ExpenseCache>();
|
||||
|
||||
// Singleton services (one instance for the app's lifetime)
|
||||
builder.Services.AddSingleton<ILoggingService, LoggingService>();
|
||||
|
||||
string path = Path.Combine(builder.Environment.ContentRootPath, "FireBase", "service-account.json");
|
||||
|
||||
FirebaseApp.Create(new AppOptions()
|
||||
{
|
||||
Credential = GoogleCredential.FromFile(path),
|
||||
});
|
||||
#endregion
|
||||
|
||||
#region Web Server (Kestrel)
|
||||
@ -213,20 +220,6 @@ builder.WebHost.ConfigureKestrel(options =>
|
||||
|
||||
#endregion
|
||||
|
||||
string path = Path.Combine(builder.Environment.ContentRootPath, "FireBase", "service-account.json");
|
||||
|
||||
FirebaseApp.Create(new AppOptions()
|
||||
{
|
||||
Credential = GoogleCredential.FromFile(path),
|
||||
});
|
||||
|
||||
string path = Path.Combine(builder.Environment.ContentRootPath, "FireBase", "service-account.json");
|
||||
|
||||
FirebaseApp.Create(new AppOptions()
|
||||
{
|
||||
Credential = GoogleCredential.FromFile(path),
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
#region ===================== HTTP Request Pipeline Configuration =====================
|
||||
|
Loading…
x
Reference in New Issue
Block a user