|
@@ -32,12 +32,14 @@ namespace DotNetCore.CAP.InMemoryStorage |
|
|
public Task ChangePublishStateAsync(MediumMessage message, StatusName state) |
|
|
public Task ChangePublishStateAsync(MediumMessage message, StatusName state) |
|
|
{ |
|
|
{ |
|
|
PublishedMessages[message.DbId].StatusName = state; |
|
|
PublishedMessages[message.DbId].StatusName = state; |
|
|
|
|
|
PublishedMessages[message.DbId].ExpiresAt = message.ExpiresAt; |
|
|
return Task.CompletedTask; |
|
|
return Task.CompletedTask; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Task ChangeReceiveStateAsync(MediumMessage message, StatusName state) |
|
|
public Task ChangeReceiveStateAsync(MediumMessage message, StatusName state) |
|
|
{ |
|
|
{ |
|
|
ReceivedMessages[message.DbId].StatusName = state; |
|
|
ReceivedMessages[message.DbId].StatusName = state; |
|
|
|
|
|
ReceivedMessages[message.DbId].ExpiresAt = message.ExpiresAt; |
|
|
return Task.CompletedTask; |
|
|
return Task.CompletedTask; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -106,7 +108,7 @@ namespace DotNetCore.CAP.InMemoryStorage |
|
|
Retries = mdMessage.Retries, |
|
|
Retries = mdMessage.Retries, |
|
|
Added = mdMessage.Added, |
|
|
Added = mdMessage.Added, |
|
|
ExpiresAt = mdMessage.ExpiresAt, |
|
|
ExpiresAt = mdMessage.ExpiresAt, |
|
|
StatusName = StatusName.Failed |
|
|
|
|
|
|
|
|
StatusName = StatusName.Scheduled |
|
|
}; |
|
|
}; |
|
|
return mdMessage; |
|
|
return mdMessage; |
|
|
} |
|
|
} |
|
|