docs: #293 making BreakPoemAsync longrunningjob friendly

This commit is contained in:
Hamid Reza Mohammadi 2022-03-20 10:24:59 +03:30
parent ca763bd49a
commit 3ee987824b
3 changed files with 23 additions and 17 deletions

View File

@ -12652,15 +12652,6 @@
<param name="userId"></param>
<returns></returns>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorService.BreakPoemAsync(System.Int32,System.Int32,System.Guid)">
<summary>
break a poem from a verse forward
</summary>
<param name="poemId"></param>
<param name="vOrder"></param>
<param name="userId"></param>
<returns></returns>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorService.GetCenturiesAsync">
<summary>
get centuries with published poets
@ -13341,6 +13332,15 @@
<param name="pageData"></param>
<returns></returns>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorService.BreakPoemAsync(System.Int32,System.Int32,System.Guid)">
<summary>
break a poem from a verse forward
</summary>
<param name="poemId"></param>
<param name="vOrder"></param>
<param name="userId"></param>
<returns></returns>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorService.GetOlderVersionsOfPage(System.Int32)">
<summary>
return page modifications history

View File

@ -7,6 +7,7 @@ using System.Linq;
using System.Threading.Tasks;
using DNTPersianUtils.Core;
using RMuseum.Models.Ganjoor.ViewModels;
using RMuseum.DbContext;
namespace RMuseum.Services.Implementation
{
@ -15,14 +16,7 @@ namespace RMuseum.Services.Implementation
/// </summary>
public partial class GanjoorService : IGanjoorService
{
/// <summary>
/// break a poem from a verse forward
/// </summary>
/// <param name="poemId"></param>
/// <param name="vOrder"></param>
/// <param name="userId"></param>
/// <returns></returns>
public async Task<RServiceResult<int>> BreakPoemAsync(int poemId, int vOrder, Guid userId)
public async Task<RServiceResult<int>> _BreakPoemAsync(RMuseumDbContext context, int poemId, int vOrder, Guid userId)
{
try
{

View File

@ -2454,6 +2454,18 @@ namespace RMuseum.Services.Implementation
return await _UpdatePageAsync(_context, id, editingUserId, pageData, true);
}
/// <summary>
/// break a poem from a verse forward
/// </summary>
/// <param name="poemId"></param>
/// <param name="vOrder"></param>
/// <param name="userId"></param>
/// <returns></returns>
public async Task<RServiceResult<int>> BreakPoemAsync(int poemId, int vOrder, Guid userId)
{
return await _BreakPoemAsync(_context, poemId, vOrder, userId);
}
/// <summary>
/// return page modifications history
/// </summary>