From 587b22014d622aa07335622bae8bcc77b24a5315 Mon Sep 17 00:00:00 2001 From: nsnail Date: Fri, 15 Nov 2024 16:44:54 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20code=20format=20(#202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] Co-authored-by: tk --- .../Services/RepositoryService.cs | 6 +++--- .../Services/Sys/ApiService.cs | 12 ++++++------ .../Services/Sys/ConfigService.cs | 12 ++++++------ .../Services/Sys/DeptService.cs | 12 ++++++------ .../Services/Sys/DicCatalogService.cs | 12 ++++++------ .../Services/Sys/DicContentService.cs | 12 ++++++------ .../Services/Sys/JobRecordService.cs | 12 ++++++------ .../Services/Sys/JobService.cs | 12 ++++++------ .../Services/Sys/LoginLogService.cs | 12 ++++++------ .../Services/Sys/MenuService.cs | 12 ++++++------ .../Services/Sys/RequestLogDetailService.cs | 12 ++++++------ .../Services/Sys/RequestLogService.cs | 12 ++++++------ .../Services/Sys/RoleService.cs | 12 ++++++------ .../Services/Sys/SiteMsgDeptService.cs | 12 ++++++------ .../Services/Sys/SiteMsgFlagService.cs | 12 ++++++------ .../Services/Sys/SiteMsgRoleService.cs | 12 ++++++------ .../Services/Sys/SiteMsgService.cs | 12 ++++++------ .../Services/Sys/SiteMsgUserService.cs | 12 ++++++------ .../Services/Sys/UserProfileService.cs | 12 ++++++------ .../Services/Sys/UserService.cs | 6 +++--- .../Services/Sys/VerifyCodeService.cs | 18 +++++++++--------- .../Events/Sys/RequestLogEvent.cs | 2 +- .../Events/Sys/UserCreatedEvent.cs | 2 +- .../Events/Sys/UserUpdatedEvent.cs | 2 +- .../Events/Sys/VerifyCodeCreatedEvent.cs | 2 +- 25 files changed, 127 insertions(+), 127 deletions(-) diff --git a/src/backend/NetAdmin/NetAdmin.Application/Services/RepositoryService.cs b/src/backend/NetAdmin/NetAdmin.Application/Services/RepositoryService.cs index 7209bc07..cea6ea9c 100644 --- a/src/backend/NetAdmin/NetAdmin.Application/Services/RepositoryService.cs +++ b/src/backend/NetAdmin/NetAdmin.Application/Services/RepositoryService.cs @@ -51,10 +51,10 @@ public abstract class RepositoryService(BasicReposit where TQuery : DataAbstraction, new() { var select = selector(query) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .Take(Numbers.MAX_LIMIT_EXPORT); + #endif + .Take(Numbers.MAX_LIMIT_EXPORT); object list = listExp == null ? await select.ToListAsync().ConfigureAwait(false) : await select.ToListAsync(listExp).ConfigureAwait(false); diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ApiService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ApiService.cs index c4a59518..b58990cb 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ApiService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ApiService.cs @@ -21,10 +21,10 @@ public sealed class ApiService( { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -46,10 +46,10 @@ public sealed class ApiService( { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ConfigService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ConfigService.cs index f77ae523..bd62e7f5 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ConfigService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/ConfigService.cs @@ -25,10 +25,10 @@ public sealed class ConfigService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -64,10 +64,10 @@ public sealed class ConfigService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DeptService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DeptService.cs index 6de64752..8f060689 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DeptService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DeptService.cs @@ -25,10 +25,10 @@ public sealed class DeptService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -80,10 +80,10 @@ public sealed class DeptService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicCatalogService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicCatalogService.cs index c838231f..2f716091 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicCatalogService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicCatalogService.cs @@ -25,10 +25,10 @@ public sealed class DicCatalogService(BasicRepository rpo) { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -77,10 +77,10 @@ public sealed class DicCatalogService(BasicRepository rpo) { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicContentService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicContentService.cs index bf2603a4..3c2f260c 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicContentService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DicContentService.cs @@ -25,10 +25,10 @@ public sealed class DicContentService(BasicRepository rpo) { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -86,10 +86,10 @@ public sealed class DicContentService(BasicRepository rpo) { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobRecordService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobRecordService.cs index 1ab1841b..e645bd13 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobRecordService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobRecordService.cs @@ -25,10 +25,10 @@ public sealed class JobRecordService(BasicRepository rpo) / { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -51,10 +51,10 @@ public sealed class JobRecordService(BasicRepository rpo) / { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobService.cs index 7b8edf0d..2fd2ab70 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/JobService.cs @@ -29,10 +29,10 @@ public sealed class JobService(BasicRepository rpo, IJobRecordSer { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -128,10 +128,10 @@ public sealed class JobService(BasicRepository rpo, IJobRecordSer { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/LoginLogService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/LoginLogService.cs index 8b41f4a1..f458629c 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/LoginLogService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/LoginLogService.cs @@ -25,10 +25,10 @@ public sealed class LoginLogService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -51,10 +51,10 @@ public sealed class LoginLogService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/MenuService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/MenuService.cs index e43378be..37d4374f 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/MenuService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/MenuService.cs @@ -25,10 +25,10 @@ public sealed class MenuService(BasicRepository rpo, IUserServic { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -64,10 +64,10 @@ public sealed class MenuService(BasicRepository rpo, IUserServic { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogDetailService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogDetailService.cs index 3ce68689..9e88cca9 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogDetailService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogDetailService.cs @@ -25,10 +25,10 @@ public sealed class RequestLogDetailService(BasicRepository @@ -51,10 +51,10 @@ public sealed class RequestLogDetailService(BasicRepository diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogService.cs index c5e5767e..24262602 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RequestLogService.cs @@ -27,10 +27,10 @@ public sealed class RequestLogService(BasicRepository rpo, { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -59,10 +59,10 @@ public sealed class RequestLogService(BasicRepository rpo, { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RoleService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RoleService.cs index 802b448f..d6563917 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RoleService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/RoleService.cs @@ -25,10 +25,10 @@ public sealed class RoleService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -79,10 +79,10 @@ public sealed class RoleService(BasicRepository rpo) // { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgDeptService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgDeptService.cs index 4917580c..65af6c2a 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgDeptService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgDeptService.cs @@ -25,10 +25,10 @@ public sealed class SiteMsgDeptService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -51,10 +51,10 @@ public sealed class SiteMsgDeptService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgFlagService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgFlagService.cs index d9ccd39b..a6507275 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgFlagService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgFlagService.cs @@ -25,10 +25,10 @@ public sealed class SiteMsgFlagService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -51,10 +51,10 @@ public sealed class SiteMsgFlagService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgRoleService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgRoleService.cs index 1bca97b8..f672119d 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgRoleService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgRoleService.cs @@ -25,10 +25,10 @@ public sealed class SiteMsgRoleService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -51,10 +51,10 @@ public sealed class SiteMsgRoleService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgService.cs index c99ccbef..58a1a450 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgService.cs @@ -28,10 +28,10 @@ public sealed class SiteMsgService(BasicRepository rpo, Conte { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -93,10 +93,10 @@ public sealed class SiteMsgService(BasicRepository rpo, Conte { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgUserService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgUserService.cs index 5edf1b8f..e93dea4f 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgUserService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/SiteMsgUserService.cs @@ -25,10 +25,10 @@ public sealed class SiteMsgUserService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -51,10 +51,10 @@ public sealed class SiteMsgUserService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserProfileService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserProfileService.cs index 5d607e25..9c05d218 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserProfileService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserProfileService.cs @@ -45,10 +45,10 @@ public sealed class UserProfileService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -79,10 +79,10 @@ public sealed class UserProfileService(BasicRepository rp { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserService.cs index c9762199..862ac215 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/UserService.cs @@ -68,10 +68,10 @@ public sealed class UserService( req.ThrowIfInvalid(); #pragma warning disable VSTHRD103 return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); #pragma warning restore VSTHRD103 } diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/VerifyCodeService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/VerifyCodeService.cs index 67c8c51c..2eb9e803 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/VerifyCodeService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/VerifyCodeService.cs @@ -28,10 +28,10 @@ public sealed class VerifyCodeService(BasicRepository rpo, { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .CountAsync(); + #endif + .CountAsync(); } /// @@ -60,10 +60,10 @@ public sealed class VerifyCodeService(BasicRepository rpo, { req.ThrowIfInvalid(); return QueryInternal(req) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .AnyAsync(); + #endif + .AnyAsync(); } /// @@ -178,10 +178,10 @@ public sealed class VerifyCodeService(BasicRepository rpo, , Value = destDevice } }) - #if DBTYPE_SQLSERVER + #if DBTYPE_SQLSERVER .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) - #endif - .ToOneAsync(); + #endif + .ToOneAsync(); } private ISelect QueryInternal(QueryReq req) diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Domain/Events/Sys/RequestLogEvent.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Domain/Events/Sys/RequestLogEvent.cs index 8123c5cd..b73ef9eb 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Domain/Events/Sys/RequestLogEvent.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Domain/Events/Sys/RequestLogEvent.cs @@ -15,7 +15,7 @@ public sealed record RequestLogEvent : DataAbstraction, IEventSourceGeneric