refactor: update protobuf imports from BFF to CMS
All checks were successful
Build and Deploy / build (push) Successful in 2m18s

This commit is contained in:
masoodafar-web
2025-12-08 01:37:35 +03:30
parent 668ba449f1
commit fd3c17ac23
17 changed files with 37 additions and 19 deletions

View File

@@ -1,5 +1,7 @@
using CMSMicroservice.Protobuf.Protos.ClubMembership;
using CMSMicroservice.Protobuf.Protos.Commission;
using CMSMicroservice.Protobuf.Protos.Configuration;
using CMSMicroservice.Protobuf.Protos.NetworkMembership;
using Foursat.BackOffice.BFF.Health.Protobuf;
namespace BackOffice.BFF.Application.HealthCQ.Queries.GetSystemHealth;
@@ -25,7 +27,7 @@ public class GetSystemHealthQueryHandler : IRequestHandler<GetSystemHealthQuery,
{
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
await _context.Commissions.GetAllWeeklyPoolsAsync(
new BackOffice.BFF.Commission.Protobuf.GetAllWeeklyPoolsRequest
new GetAllWeeklyPoolsRequest
{
PageIndex = 1,
PageSize = 1
@@ -89,7 +91,7 @@ public class GetSystemHealthQueryHandler : IRequestHandler<GetSystemHealthQuery,
{
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
await _context.NetworkMemberships.GetNetworkStatisticsAsync(
new BackOffice.BFF.NetworkMembership.Protobuf.GetNetworkStatisticsRequest(),
new GetNetworkStatisticsRequest(),
cancellationToken: cancellationToken);
stopwatch.Stop();
networkHealthy = true;