refactor: Update protobuf namespaces and remove unused imports

This commit is contained in:
masoodafar-web
2025-12-06 16:42:15 +03:30
parent ba38e4ac22
commit b229a3f0b6
98 changed files with 62 additions and 205 deletions

View File

@@ -1,5 +1,6 @@
using BackOffice.BFF.Health.Protobuf;
using Google.Protobuf.WellKnownTypes;
using CMSMicroservice.Protobuf.Protos.ClubMembership;
using CMSMicroservice.Protobuf.Protos.Configuration;
using Foursat.BackOffice.BFF.Health.Protobuf;
namespace BackOffice.BFF.Application.HealthCQ.Queries.GetSystemHealth;
@@ -56,7 +57,7 @@ public class GetSystemHealthQueryHandler : IRequestHandler<GetSystemHealthQuery,
{
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
await _context.Configurations.GetAllConfigurationsAsync(
new BackOffice.BFF.Configuration.Protobuf.GetAllConfigurationsRequest
new GetAllConfigurationsRequest
{
PageIndex = 1,
PageSize = 1
@@ -116,7 +117,7 @@ public class GetSystemHealthQueryHandler : IRequestHandler<GetSystemHealthQuery,
{
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
await _context.ClubMemberships.GetClubStatisticsAsync(
new BackOffice.BFF.ClubMembership.Protobuf.GetClubStatisticsRequest(),
new GetClubStatisticsRequest(),
cancellationToken: cancellationToken);
stopwatch.Stop();
clubHealthy = true;