-
Notifications
You must be signed in to change notification settings - Fork 1.5k
WIP - First stab at creating a BodyDelegate type #2577
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,31 @@ | |||
namespace Nancy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the wrong location, needs to be under ./Nancy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shrug VS2015 is garbage, what can I say? :)
@@ -1376,6 +1376,7 @@ | |||
<Compile Include="..\Nancy\Routing\Route.cs"> | |||
<Link>Routing\Route.cs</Link> | |||
</Compile> | |||
<Compile Include="BodyDelegate.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
../Nancy
required
@grumpydev @jchannon yeah unfortunately there is a bit of fud right now if you add new files.. due to and old bug with VS tooling when |
@grumpydev can you rebase plz? |
👀 rebase, pretty please? 😄 |
Prerequisites
Description
Initial stab at pulling out the body delegate to its own type to allow for casts to/from the actual async and non-async delegate signatures - idea being we patch up everything by adding a cast to Action to make it build (unfortunately implicit casts and delegates still need an explicit cast), then we can work through bit by bit making them async, then remove the cast option from the sync delegate type at a later date.
Already fixed up the Nancy project itself, which shows both "asyncing" the bits that make sense, and just straight casting the bits that don't (such as when writing a string).