payloadLifespan/payloadLifetime and other name variants unified to Time To Live naming.
All checks were successful
Build and Push Docker Image / build (push) Successful in 55s
Build and Push Docker Image / docker (push) Successful in 36s

This commit is contained in:
2025-07-05 17:07:53 +02:00
parent 85c462a614
commit a44912ac87
25 changed files with 496 additions and 25 deletions

View File

@ -32,7 +32,7 @@ namespace MessengerApi.Handlers.Endpoint
Guid? toUserId,
string payload,
string payloadType,
int? payloadLifespanInSeconds)
int? timeToLiveInSeconds)
{
// Authorize.
var targetRecipientId = toUserId.HasValue
@ -50,7 +50,7 @@ namespace MessengerApi.Handlers.Endpoint
ToId = targetRecipientId,
Payload = payload,
PayloadType = payloadType,
PayloadLifespanInSeconds = payloadLifespanInSeconds ?? (this.configuration.DefaultMessageLifetimeInMinutes * 60)
TimeToLiveInSeconds = timeToLiveInSeconds ?? (this.configuration.DefaultMessageTimeToLiveInSeconds)
};
this.unitOfWork.Messages.Add(message);