From 594057c4dba81b8f9e16a2eeca673d1674cf0f05 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 15:34:25 +0100 Subject: [PATCH] Add GetOrCreateCommand for endpoint handling Introduced the `GetOrCreateCommand` class in the `ReC.Application.Endpoints.Commands` namespace. This class implements the `IRequest` interface from MediatR to handle requests for retrieving or creating an `Endpoint`. Added `Uri` property to the command with an `init` accessor for immutability. Included necessary `using` directives for `MediatR` and `ReC.Domain.Entities`. --- .../Endpoints/Commands/GetOrCreateCommand.cs.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs diff --git a/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs b/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs new file mode 100644 index 0000000..f0f5c73 --- /dev/null +++ b/src/ReC.Application/Endpoints/Commands/GetOrCreateCommand.cs.cs @@ -0,0 +1,9 @@ +using MediatR; +using ReC.Domain.Entities; + +namespace ReC.Application.Endpoints.Commands; + +public class GetOrCreateCommand : IRequest +{ + public string Uri { get; init; } = null!; +}