mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Fixes typos and replaces LINQ conversions with collection expressions
This commit is contained in:
1 parent
adadec7f3b
commit
74e9030a18
75 files changed
+113
-113
No files matched your search
@@ -13,7 +13,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Api.Common.Middlewares;
|
||||
|
||||
/// <summary>
|
||||
/// Middleware that ensures eventual consistency by handling domain events and publishing them after the request has completed successfuly.
|
||||
/// Middleware that ensures eventual consistency by handling domain events and publishing them after the request has completed successfully.
|
||||
/// </summary>
|
||||
public class EventualConsistencyMiddleware
|
||||
{
|
||||
@@ -52,9 +52,9 @@ public class EventualConsistencyMiddleware
|
||||
{
|
||||
// commit the transaction: because some domain events trigger jobs that end up being processed in background hosted services, and those are
|
||||
// singletons that require their own DI scope to be created, any changes made on the DbContext in this HTTP scope would not be seen on the
|
||||
// DbContext created in the background service scope, because the transaction is not yet commited here; therefor, the transaction needs to be
|
||||
// commited first, before any domain events are fired
|
||||
// see docs/technical/achitecture/architecture-knowledge-management/architecture-decision-log/architecture-decission-record-0002.md for details:
|
||||
// DbContext created in the background service scope, because the transaction is not yet committed here; therefor, the transaction needs to be
|
||||
// committed first, before any domain events are fired
|
||||
// see docs/technical/architecture/architecture-knowledge-management/architecture-decision-log/architecture-decision-record-0002.md for details:
|
||||
await transaction.CommitAsync().ConfigureAwait(false);
|
||||
|
||||
// check if domain events exist in the channel queue and publish them
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public class AddRoleEndpointSummary : Summary<AddRoleEndpoint, AddRoleRequest>
|
||||
ResponseParam<RolePermissionsResponse>(r => r.Permissions, "The list of permissions of the role entity.");
|
||||
|
||||
|
||||
Response(200, "The authorization role was successfuly created.", example:
|
||||
Response(200, "The authorization role was successfully created.", example:
|
||||
new RolePermissionsResponse(
|
||||
Role: new RoleDto(Id: Guid.NewGuid(), "Editor"),
|
||||
Permissions: [new PermissionDto(Guid.NewGuid(), AuthorizationPermission.CanDeleteUsers), new PermissionDto(Guid.NewGuid(), AuthorizationPermission.CanViewUsers)]
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ public class DeleteRoleEndpointSummary : Summary<DeleteRoleEndpoint, DeleteRoleR
|
||||
|
||||
RequestParam(r => r.RoleId, "The unique identifier of the role. Required.");
|
||||
|
||||
Response(204, "The authorization role was successfuly deleted.");
|
||||
Response(204, "The authorization role was successfully deleted.");
|
||||
|
||||
Response(401, "Authentication required.", "application/problem+json",
|
||||
example: new[]
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ public class UpdateRoleEndpointSummary : Summary<UpdateRoleEndpoint, UpdateRoleR
|
||||
ResponseParam<RolePermissionsResponse>(r => r.Permissions, "The list of permissions of the role entity.");
|
||||
|
||||
|
||||
Response(200, "The authorization role was successfuly updated.", example:
|
||||
Response(200, "The authorization role was successfully updated.", example:
|
||||
new RolePermissionsResponse(
|
||||
Role: new RoleDto(Id: Guid.NewGuid(), "Editor"),
|
||||
Permissions: [new PermissionDto(Guid.NewGuid(), AuthorizationPermission.CanDeleteUsers), new PermissionDto(Guid.NewGuid(), AuthorizationPermission.CanViewUsers)]
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ public class SplitPathEndpointSummary : Summary<SplitPathEndpoint, SplitPathRequ
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the path segments. Required.");
|
||||
|
||||
Response(200, "successfuly split the path into segments.",
|
||||
Response(200, "successfully split the path into segments.",
|
||||
example: new PathSegmentResponse[2] {
|
||||
new(Path: "media"),
|
||||
new(Path: "movies")
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ public class DeleteLibraryEndpointSummary : Summary<DeleteLibraryEndpoint, Delet
|
||||
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to be deleted. Required.");
|
||||
|
||||
Response(200, "The media library was successfuly deleted.");
|
||||
Response(200, "The media library was successfully deleted.");
|
||||
|
||||
Response(401, "Authentication required.", "application/problem+json",
|
||||
example: new[]
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ public class UpdateUserRoleAndPermissionsEndpointSummary : Summary<UpdateUserRol
|
||||
ResponseParam<AuthorizationResponse>(r => r.Permissions, "The list of permissions of the user.");
|
||||
|
||||
|
||||
Response(200, "The authorization role and permissions of the user were successfuly updated.", example:
|
||||
Response(200, "The authorization role and permissions of the user were successfully updated.", example:
|
||||
new AuthorizationResponse(
|
||||
UserId: Guid.NewGuid(),
|
||||
Role: "Editor",
|
||||
|
||||
Reference in new issue
Block a user