Commit Graph

579 Commits

Author SHA1 Message Date
Chris R 5e7b30c04b #542 Add IHttpConnectionFeature.ConnectionId 2016-02-18 11:08:05 -08:00
Doug Bunting 8c120a0792 Extend `WebEncoders` API to avoid allocations within the methods
- rewrite existing methods in terms of the new ones
- don't allocate multiple 0-length arrays

nits:
- clarify a couple of doc comments e.g. using `<paramref/>`
- move an error message into a resource
 - pass parameter names into new resource
- rename parameters for consistency e.g. `inputLength` -> `count`
- name literal `int` parameters
- more `var`
2016-02-17 23:13:33 -08:00
Doug Bunting 5d8231ee0d `OwinExtensions.UseBuilder()` should not leave `ApplicationServices` or `RequestServices` `null`
Also correct tests to avoid warnings and to ensure scenarios are actually tested
- tests previously went `async` without waiting for completion

nit: add parameter `null` checks
2016-02-17 11:31:02 -08:00
Kristian Hellang cb09ffccce Changed SaveAs[Async](string) to CopyTo[Async](Stream) 2016-02-11 12:11:42 -08:00
Kiran Challa 4a3e2ad3c5 Enable tests to run using dotnet xunit runner 2016-02-09 22:11:54 -08:00
Chris R 04e9da4e88 #527 Add IFileInfo overloads for SendFileAsync. 2016-02-08 10:55:36 -08:00
Chris R 3e6c7171be #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
Pranav K 77c137fc0a Reacting to CoreCLR package version changes 2016-02-08 09:33:46 -08:00
N. Taylor Mullen faf8a73953 Update project.json to remove redundant System.Runtime dependency.
- This package is pulled in transitively.
2016-02-05 17:21:54 -08:00
John Luo 8aa7a0993d Relocating dependencies 2016-02-01 18:26:36 -08:00
John Luo 93079ea3a6 Updating to new CLI 2016-02-01 16:37:16 -08:00
Brennan 765a52007a Use EscapeDataString for encoding Cookies 2016-01-29 12:58:36 -08:00
N. Taylor Mullen 02363da94e Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:20:40 -08:00
N. Taylor Mullen b2c154b576 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:20:30 -08:00
ryanbrandenburg da478b02ed * Move HttpResponseStreamWriter from Mvc 2016-01-21 10:28:07 -08:00
Pranav K 38feebc0d6 Reacting to CoreCLR package version change 2016-01-20 20:53:25 -08:00
Brennan 3f84e992f4 Make StreamCopyOperation public and update it to same as StaticFiles 2016-01-19 10:03:26 -08:00
Brennan 1f21540fd5 Remove IsLocal 2016-01-19 08:35:53 -08:00
Nate McMaster 8349419c7f Updating build script 2016-01-14 16:41:14 -08:00
David Fowler 4e495b3578 Merge pull request #534 from khellang/save-form-file
Promote IFormFile extension methods
2016-01-13 15:01:46 +00:00
Kristian Hellang 4b64d187c2 Promote IFormFile extension methods to IFormFile 2016-01-13 14:30:14 +01:00
John Luo fa8c5cbb3a Updating QueryString doc comment 2016-01-08 19:28:34 -08:00
David Fowler 6bc8384ea9 Small style cleanup 2016-01-07 20:52:54 -08:00
David Fowler ca8136b73c Compile middleware invoke method when extra args are provided
- Improves the performance when accessing scoped services in middleware
2016-01-07 20:39:04 -08:00
Victor Hurdugaci e7bf0e71bb Build with dotnet 2016-01-07 14:22:25 -08:00
David Fowler 05c476d1b5 Merge pull request #526 from benaadams/generic-get+set
Move generic Get/Set into Interface
2015-12-31 12:49:55 -08:00
Ben Adams 62ec29b6af Move generic Get/Set into Interface 2015-12-31 20:18:24 +00:00
Stephen Halter 364a712cb3 Merge branch 'lodejard/featurereferences' into dev 2015-12-30 15:35:08 -08:00
Pranav K 161d6ca5c0 Move Microsoft.Extensions.WebEncoders to HtmlAbstractions
Fixes #512
2015-12-23 09:27:39 -08:00
Brennan ee804e5841 Register FileBufferingReadStream for disposal 2015-12-22 16:13:23 -08:00
Hao Kung 1a485fadb0 OptionsModel => Options 2015-12-21 15:04:10 -08:00
Louis DeJardin c95d816c1d Updating unit test to probe _features cache field state 2015-12-17 11:18:44 -08:00
Louis DeJardin 35d71068d4 PR feedback 2015-12-16 22:46:20 -08:00
Louis DeJardin 290ff2a268 PR feedback 2015-12-16 22:37:07 -08:00
Louis DeJardin 4265855652 PR feedback
Adding comment about reason for public field
2015-12-16 22:35:41 -08:00
Louis DeJardin c05c203c28 Adding example of what http context pooling might look like 2015-12-16 22:02:05 -08:00
Louis DeJardin 0e3fe7493e Streamlining feature cache and object re-initialiation code paths
Shouldn't increase object size, but does improve maintainability
2015-12-16 20:01:55 -08:00
Ben Adams 67c5ec29b3 Allow feature cache to be updated+invalidated 2015-12-15 16:12:37 -08:00
Brennan c41be75796 Wrap Branch in try finally 2015-12-14 14:02:54 -08:00
Brennan 59b32934e3 Change Expires to DateTimeOffset 2015-12-14 08:27:59 -08:00
Pranav K 53be6220a9 Merge branch 'release' into dev 2015-12-11 12:22:36 -08:00
Pranav K 5a8f1281e8 Updating to release NuGet.config. 2015-12-11 12:22:33 -08:00
Kristian Hellang e3b7db6bb7 Update README.md 2015-12-09 13:43:06 +01:00
Brennan 5e42d26fd5 Implement GetHashCode 2015-12-08 10:29:53 -08:00
Pranav K 5231683aae * Removing unused dependencies from code
* Cleaning up usage of CodeAnalysis.
2015-12-07 19:22:53 -08:00
David Fowler dfe2d41437 Merge pull request #500 from khellang/form-file-name
Add Name and FileName to IFormFile
2015-12-04 12:01:24 -08:00
Kristian Hellang c2e7618d9a Added Name and FileName to IFormFile
This commits also gets rid of the name
closure in FormFileCollection by interating
over the files in the collection instead
of using Find and FindAll.

Closes #352 and #499
2015-12-04 20:28:42 +01:00
David Fowler 9887fe0dee Move the header extensions to Http.Abstractions 2015-12-02 23:58:16 -08:00
David Fowler 6055e25d19 Fixed typo in doc comment 2015-12-02 22:51:48 -08:00
David Fowler 5b175beea8 Change SendFileAsync to use a fallback implementation instead of throwing
- If the user wants to use the SendFile API directly then they can access the feature
explicitly.
- Removed SupportsSendFile
- Don't check for existence, let FileStream throw
- Updated Doc comments
- Pass the buffer into StreamCopyOperation
- Using a real using instead of try finally.
2015-12-02 22:37:53 -08:00