Minify NextPageData & CurrentPageData JSON
Clean JSON output for NextPageData and CurrentPageData Normalize NextPageData & CurrentPageData formatting Fix JSON formatting for NextPageData and CurrentPageData Compact JSON for NextPageData and CurrentPageData
This commit is contained in:
@@ -114,7 +114,7 @@ public class HomeController : Controller, ILoggable
|
||||
{
|
||||
EventName = input.PageEventName,
|
||||
WorkflowInstanceId = input.WorkflowId,
|
||||
EventData = JsonConvert.SerializeObject(input)
|
||||
EventData = System.Text.Json.JsonSerializer.SerializeToElement(input)
|
||||
};
|
||||
|
||||
var response = await _workflowService.PublishEventAsync(publishModel);
|
||||
@@ -173,7 +173,7 @@ public class HomeController : Controller, ILoggable
|
||||
{
|
||||
EventName = input.PageEventName,
|
||||
WorkflowInstanceId = input.WorkflowId,
|
||||
EventData = JsonConvert.SerializeObject(input)
|
||||
EventData = System.Text.Json.JsonSerializer.SerializeToElement(input)
|
||||
};
|
||||
|
||||
var response = await _workflowService.PublishEventAsync(publishEventModel);
|
||||
|
||||
@@ -98,7 +98,7 @@ namespace SampleWorkflowWeb.Controllers
|
||||
{
|
||||
EventName = input.PageEventName,
|
||||
WorkflowInstanceId = input.WorkflowId,
|
||||
EventData = JsonConvert.SerializeObject(input)
|
||||
EventData = System.Text.Json.JsonSerializer.SerializeToElement(input)
|
||||
};
|
||||
|
||||
var response = await _workflowService.PublishEventAsync(publishModel);
|
||||
@@ -189,7 +189,7 @@ namespace SampleWorkflowWeb.Controllers
|
||||
{
|
||||
EventName = input.PageEventName,
|
||||
WorkflowInstanceId = input.WorkflowId,
|
||||
EventData = JsonConvert.SerializeObject(input)
|
||||
EventData = System.Text.Json.JsonSerializer.SerializeToElement(input)
|
||||
};
|
||||
|
||||
var response = await _workflowService.PublishEventAsync(publishModel);
|
||||
@@ -258,7 +258,7 @@ namespace SampleWorkflowWeb.Controllers
|
||||
{
|
||||
EventName = input.PageEventName,
|
||||
WorkflowInstanceId = input.WorkflowId,
|
||||
EventData = JsonConvert.SerializeObject(input)
|
||||
EventData = System.Text.Json.JsonSerializer.SerializeToElement(input)
|
||||
};
|
||||
|
||||
var response = await _workflowService.PublishEventAsync(publishModel);
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace SampleWorkflowWeb.Models
|
||||
using System.Text.Json;
|
||||
|
||||
namespace SampleWorkflowWeb.Models
|
||||
{
|
||||
public class WorkflowModel
|
||||
{
|
||||
@@ -28,7 +30,7 @@
|
||||
/// <summary>
|
||||
/// داده صفحه جاری
|
||||
/// </summary>
|
||||
public string? CurrentPageData { get; set; }
|
||||
public JsonElement? CurrentPageData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// داده صفحه بعد
|
||||
@@ -36,7 +38,7 @@
|
||||
/// فعلا استفاده ای نداریم
|
||||
/// </remark>
|
||||
/// </summary>
|
||||
public string? NextPageData { get; set; }
|
||||
public JsonElement? NextPageData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// آدرس صفحه بعدی
|
||||
|
||||
Reference in New Issue
Block a user