Changes due to async methods
As of MIB 6.0, multiple methods, especially those related to database accesses, have been converted to async tasks.
Components
The following component methods have become async:
IComponent
Task Initialize(IMibApiClientLibrary apiClientLibrary, IPublicWorkflowFactory workflowFactory, IHttpContextAccessor httpContextAccessor)
IRenderableComponent
Task<ComponentRenderData<TViewData>> GetRenderData(List<ResponseItemContent> responseItemContents, CancellationToken cancellationToken)
IRefreshableComponent
Task<ComponentRenderData<TViewData>> GetRefreshRenderData(PostbackComponentRequest request, CancellationToken cancellationToken)
IPersistableComponent
Task<IPersistenceSaveData> Save(PostbackComponentRequest request, List<IPersistenceSaveData> saveDataList, CancellationToken cancellationToken)
IHandler
Task<IActionResult> Get(HttpRequest request, CancellationToken cancellationToken)
Task<IActionResult> Post(HttpRequest request, CancellationToken cancellationToken)
Task<IActionResult> Put(HttpRequest request, CancellationToken cancellationToken)
Task<IActionResult> Delete(HttpRequest request, CancellationToken cancellationToken)
Workflows
Multiple workflow methods have been converted into async tasks. If the method involves the use of stored data, it can be assumed that it has been converted into an async task. For a detailed look on workflow methods that have been changed, go to this link.