v1.1.0 #6
carlosbrunetti
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Release Notes for
feature/added-result-methods
BranchNew Features
Added
ToResult
Method:RespifyResponse
object to anObjectResult
.StatusCode
of theObjectResult
to match theRespifyResponse
'sStatusCode
.Added
ToResultAsync
Method:RespifyResponse
object to anObjectResult
.Task.FromResult
to create theObjectResult
with the sameStatusCode
as theRespifyResponse
.These changes enhance the
RespifyResponse
class by providing synchronous and asynchronous methods to convert the response object to anObjectResult
, facilitating easier integration with ASP.NET Core MVC.Tests
Test for
ToResult
Method:ToResult
method correctly converts aRespifyResponse
object to anObjectResult
with the appropriateStatusCode
.Test for
ToResultAsync
Method:ToResultAsync
method correctly converts aRespifyResponse
object to anObjectResult
asynchronously with the appropriateStatusCode
.Class Property Changes
RespifyResponse
Class:ToResult
method.ToResultAsync
method.This discussion was created from the release v1.1.0.
Beta Was this translation helpful? Give feedback.
All reactions