Add UpdateEndpointProcedure record for endpoint updates

A new `UpdateEndpointProcedure` record was introduced in the
`ReC.Application.Common.Procedures.UpdateProcedure` namespace.
This record implements the `IUpdateProcedure` interface and
includes nullable properties `Active`, `Description`, and `Uri`.

The `ToObjectProcedure` method was added to convert the record
into an `UpdateObjectProcedure` instance, setting the `Entity`
to `"ENDPOINT"`, the `Guid` to the provided parameter, and the
`Endpoint` to the current instance. The method also supports
tracking changes via the optional `changedWho` parameter.
This commit is contained in:
Developer 02
2026-01-16 00:59:23 +01:00
parent 719bc9c941
commit 348a55fc60

View File

@@ -0,0 +1,18 @@
namespace ReC.Application.Common.Procedures.UpdateProcedure;
public record UpdateEndpointProcedure : IUpdateProcedure
{
public bool? Active { get; set; }
public string? Description { get; set; }
public string? Uri { get; set; }
public UpdateObjectProcedure ToObjectProcedure(long guid, string? changedWho = null)
{
return new UpdateObjectProcedure
{
Entity = "ENDPOINT",
Guid = guid,
Endpoint = this
}.ChangedBy(changedWho);
}
}