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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user