Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

WIP - First stab at creating a BodyDelegate type #2577

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

grumpydev
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the Nancy code style guidelines
  • I have provided test coverage for my change (where applicable)

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).

@@ -0,0 +1,31 @@
namespace Nancy
Copy link
Member

@jchannon jchannon Sep 28, 2016

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

Copy link
Member Author

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" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

../Nancy required

@thecodejunkie
Copy link
Member

@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 project.json and *.csproj files existed side by side https://github.com/dotnet/corefx/issues/4544 I'm trying to figure out if it has been resolved. If it has then we should revert the <projectname>.MSBuild folder change we made as a workaround. For the time being we manually have to move the files to the correct folder and update the *.csproj to link them

@thecodejunkie
Copy link
Member

@grumpydev can you rebase plz?

@thecodejunkie thecodejunkie modified the milestone: 2.0-dangermouse Nov 1, 2016
@thecodejunkie
Copy link
Member

👀 rebase, pretty please? 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants