Skip to content

Commit 7c1e8d9

Browse files
committedOct 18, 2024
Adjust code so that the template works
1 parent d53e76d commit 7c1e8d9

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed
 

‎backend/src/Examples/ExampleApp.Examples/Configuration/AppConfig.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
using LeanCode.AppRating.Configuration;
2-
using LeanCode.Firebase;
31
using Microsoft.AspNetCore.Hosting;
42
using Microsoft.Extensions.Configuration;
53
using Microsoft.Extensions.DependencyInjection;
64
using Serilog.Events;
5+
#if Example
6+
using LeanCode.Firebase;
7+
using LeanCode.AppRating.Configuration;
8+
#endif
79

810
namespace ExampleApp.Examples.Configuration;
911

‎backend/src/Examples/ExampleApp.Examples/ServiceCollectionExtensions.cs

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
using Azure.Core;
33
using ExampleApp.Examples.Configuration;
44
using ExampleApp.Examples.DataAccess;
5-
using ExampleApp.Examples.DataAccess.Queries;
6-
using ExampleApp.Examples.DataAccess.Repositories;
75
using ExampleApp.Examples.DataAccess.Serialization;
86
using ExampleApp.Examples.Handlers.Identities;
97
using LeanCode.AuditLogs;
@@ -31,6 +29,8 @@
3129
using OpenTelemetry.Trace;
3230
using static ExampleApp.Examples.Contracts.Auth;
3331
#if Example
32+
using ExampleApp.Examples.DataAccess.Queries;
33+
using ExampleApp.Examples.DataAccess.Repositories;
3434
using ExampleApp.Examples.Domain.Booking;
3535
using ExampleApp.Examples.Domain.Employees;
3636
using ExampleApp.Examples.Domain.Projects;
@@ -107,9 +107,7 @@ IWebHostEnvironment hostEnv
107107
{
108108
services
109109
.AddOpenTelemetry()
110-
.ConfigureResource(r =>
111-
r.AddService("ExampleApp.Examples", serviceInstanceId: Environment.MachineName)
112-
)
110+
.ConfigureResource(r => r.AddService("ExampleApp.Examples", serviceInstanceId: Environment.MachineName))
113111
.WithTracing(builder =>
114112
{
115113
builder

‎backend/src/Examples/ExampleApp.Examples/Startup.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
using ExampleApp.Examples.DataAccess.Serialization;
55
using ExampleApp.Examples.Handlers.HealthCheck;
66
using ExampleApp.Examples.Handlers.Identities;
7-
using LeanCode.AppRating;
87
using LeanCode.AuditLogs;
98
using LeanCode.AzureIdentity;
109
using LeanCode.Components;
1110
using LeanCode.CQRS.AspNetCore;
1211
using LeanCode.CQRS.MassTransitRelay;
1312
using LeanCode.CQRS.MassTransitRelay.Middleware;
1413
using LeanCode.CQRS.Validation.Fluent;
15-
using LeanCode.Firebase.FCM;
1614
using LeanCode.ForceUpdate;
1715
using LeanCode.Localization;
1816
using LeanCode.OpenTelemetry;
@@ -30,6 +28,10 @@
3028
using Microsoft.Extensions.FileProviders.Physical;
3129
using Microsoft.Extensions.Hosting;
3230
using SendGrid;
31+
#if Example
32+
using LeanCode.AppRating;
33+
using LeanCode.Firebase.FCM;
34+
#endif
3335

3436
namespace ExampleApp.Examples;
3537

0 commit comments

Comments
 (0)
Please sign in to comment.