Commit Graph

8193 Commits

Author SHA1 Message Date
Chris Ross 11762840cd Add an Initialize step to IServerFactory. 2014-03-20 21:14:18 -07:00
Chris Ross 2c49d89094 Code review cleanup. 2014-03-20 11:19:42 -07:00
Louis DeJardin ff19628832 Removing the temporary use of thread static 2014-03-19 18:15:58 -07:00
Louis DeJardin 951e8df893 Making core clr friendly 2014-03-19 18:15:50 -07:00
Louis DeJardin 7b038d4e31 Adding standard implementation of IContextAccessor<> 2014-03-19 18:13:03 -07:00
Louis DeJardin c39a41bd9f Adding UseContainer middleware
Assigns values to HttpContext.ApplicationServices and
HttpContext.RequestServices as call passes through
2014-03-19 18:13:02 -07:00
Chris Ross 951dcbebb7 Add IServerInformation to IBuilder. 2014-03-19 11:35:24 -07:00
Chris Ross f2835e7185 Rename IResponseCookiesCollection to IResponseCookies. 2014-03-19 09:12:42 -07:00
Chris Ross 732ae3d030 Code review cleanup. 2014-03-19 09:12:29 -07:00
Chris Ross b9899fc72a Fix response cookies namespace. 2014-03-19 09:12:27 -07:00
Chris Ross bc43ccbc30 Change QueryString to include the leading '?'. 2014-03-19 09:12:25 -07:00
Chris Ross fc8832f69f Add Claims dependency. 2014-03-19 09:12:23 -07:00
Chris Ross cbd8401582 Fill in OnSendingHeaders, Redirect, IsSecure. 2014-03-19 09:12:21 -07:00
Chris Ross ae9545a124 Improve request and response cookie handling. 2014-03-19 09:12:18 -07:00
Stephen Halter aa0b52df4e ServiceCollection.FallbackServices no longer exists
- Pass the fallback service provider to BuildServiceProvider instead
2014-03-18 15:04:49 -07:00
GrabYourPitchforks ea1f93aa91 Fix bad call to Assembly.GetType in Hosting.
CR: chrross
2014-03-18 11:49:41 -07:00
Louis DeJardin ca2ef860f5 Adding IServiceProvider interfaces to HttpContext 2014-03-17 21:42:35 -07:00
David Fowler cd9d3a3335 Updated hosting to use service describer 2014-03-17 19:24:31 -07:00
GrabYourPitchforks 063420067e HostingServices should provide a default implementation of IDataProtectionProvider 2014-03-17 14:09:31 -07:00
David Fowler ecbb52fa40 Updated to use KoreBuild
- Updated solution file to use generated projects
- Updated to use new test runner
2014-03-17 00:37:20 -07:00
David Fowler d7bbcb9644 Fixed service provider building 2014-03-15 14:41:41 -07:00
Chris Ross 4d511b3aef Make IServerFactory not assembly neutral temporarily. 2014-03-14 15:13:00 -07:00
Levi Broderick 730b16df37 CryptRand.FillBuffer shouldn't throw if the buffer is a zero-length array. 2014-03-14 14:34:20 -07:00
David Fowler c3e0279aac Updated to use service collection 2014-03-14 14:22:20 -07:00
Chris Ross 085188996c Initial port of Secuirty base package from Katana. 2014-03-14 12:43:45 -07:00
Chris Ross 2b7272fe07 Review feedback. 2014-03-14 10:17:46 -07:00
Chris Ross 6a5cb913c8 Review cleanup. Cleaner Startup auto-detect. Fix tests. 2014-03-13 14:25:30 -07:00
Chris Ross 7ddfc9cde4 Initial import from Katana. 2014-03-13 10:57:15 -07:00
Chris Ross ee4bb6de87 Review feedback. Style cleanup. Updated build template files. 2014-03-13 09:33:29 -07:00
Chris Ross a3eb280275 Implement Program.Main and ServerManager. Add Startup search. 2014-03-12 15:07:37 -07:00
Ryan Nowak 543e818acd Add support for host based on Host header 2014-03-12 14:29:51 -07:00
Chris Ross 55ad9ab17a Support multi-value response headers. 2014-03-12 08:28:45 -07:00
Chris Ross fd510db13c Remove request limit throttle. Move to middleware later. 2014-03-11 15:16:50 -07:00
Ryan Nowak ea8f19f186 CR feedback 2014-03-11 11:20:33 -07:00
Pranav K 9ac0a8c703 Adding ContentLength to HttpRequest
Partially addresses #15
2014-03-11 11:17:48 -07:00
Chris Ross e2e78ba15d Fix extenstion method namespace. 2014-03-11 09:23:01 -07:00
Chris Ross 704239bca8 Allow zero length sends and receives. 2014-03-11 08:26:42 -07:00
Ryan Nowak 6a309f20d8 Passing route collection through the context - for MVC to get access to it. 2014-03-10 10:12:19 -07:00
Ryan Nowak da057820e5 Rename BindPath (CR Feedback) 2014-03-10 10:02:57 -07:00
Chris Ross 1853c71114 Narrow ping write lock. 2014-03-10 08:32:59 -07:00
Chris Ross 2dbe40dca5 Negotiate sub-protocol. 2014-03-09 20:55:43 -07:00
Chris Ross 65532849f6 Handle unmasking offset data. 2014-03-08 23:01:53 -08:00
Chris Ross 678af7c22f Implement KeepAliveInterval, send pings. 2014-03-08 15:14:54 -08:00
Chris Ross 30ca12933e Cleanup, simple perf. 2014-03-08 10:35:56 -08:00
David Fowler 27d834ae6a Added required packages for K 2014-03-08 04:16:12 -08:00
David Fowler 55718fd931 Added required packages for K and fixed the build 2014-03-08 03:47:38 -08:00
David Fowler c111258938 Add required references for K to work 2014-03-08 01:48:44 -08:00
Chris Ross 9ba9f666bb Fix continuation frame bug. 2014-03-07 22:25:21 -08:00
Levi Broderick 6748897083 Update DataProtection to use a K-generated .resx designer file instead of the VS-generated .resx designer file. 2014-03-07 14:46:19 -08:00
Chris Ross 38f5793e3d Seperate message pump into higher layer. 2014-03-07 12:19:36 -08:00
Chris Ross 6ecc36de5a Cleanup, argument validation. 2014-03-07 09:36:17 -08:00
David Fowler f420ba4600 Added required packages for K 2014-03-07 02:39:48 -08:00
David Fowler f5a43708ee Added references to required K packages 2014-03-07 02:28:46 -08:00
David Fowler 2dfdfafaa6 Added required packages for K 2014-03-07 02:17:04 -08:00
Levi Broderick adf2adabc0 Add PBKDF2 support to the data protection library. 2014-03-06 19:42:00 -08:00
Ryan Nowak 83eb6c4d22 Small bugfix in routing 2014-03-06 16:23:48 -08:00
Chris Ross 1bd9bf1714 Implement continuation frames. 2014-03-06 13:50:04 -08:00
Chris Ross 1d5b4582f1 Cleanup, unmasking. 2014-03-06 12:32:46 -08:00
Ryan Nowak f604fb8d87 CR feedback again 2014-03-06 12:18:31 -08:00
Ryan Nowak f43985b58d CR feedback 2014-03-06 11:27:37 -08:00
Chris Ross 2f770ca4d4 Handle incoming pings and pongs. 2014-03-06 10:29:54 -08:00
Ryan Nowak d2a3bd3490 CR feedback 2014-03-05 20:41:22 -08:00
Chris Ross 14685821a6 Implement client masking. 2014-03-05 16:55:32 -08:00
Ryan Nowak 5d34a61bd9 API changes for Routing 2014-03-05 16:48:10 -08:00
Ryan Nowak cd73fac433 Adding API for consuming url generation 2014-03-05 13:28:44 -08:00
Shih-Ying Hsu 8ac4bbd6cf further code cleanup 2014-03-05 12:06:08 -08:00
Shih-Ying Hsu 547a9b6e13 Added validation and documentations for AwaitableThrottle.MaxConcurrent 2014-03-05 11:49:17 -08:00
Ryan Nowak 89eb6e6445 Some extra resiliance and tests! Oh glorious tests. 2014-03-05 11:27:06 -08:00
Ryan Nowak bdd4513b88 Adding object-dictionary support for defaults 2014-03-05 11:27:04 -08:00
Shih-Ying Hsu 2960c5679d Comments clean up 2014-03-05 11:22:32 -08:00
Shih-Ying Hsu 177b0e87bf Few changes according to code review 2014-03-05 11:17:16 -08:00
Shih-Ying Hsu c9b60c13e4 Worker based request processing. A static number of workers are used to listen to requests
Signed-off-by: Shih-Ying Hsu <shhsu@microsoft.com>
2014-03-05 10:54:14 -08:00
Chris Ross 7004026b5e Implement Close. 2014-03-05 09:28:09 -08:00
Chris Ross dbd084cb2c Initial WebSocket projects, handshake, framing. 2014-03-04 21:09:12 -08:00
Louis DeJardin c4e98614e5 Pointing at updated configuration package name 2014-03-04 20:23:51 -08:00
Hao Kung 1e91cbb565 Back to using System.Security.Claims ns 2014-03-04 15:47:17 -08:00
Hao Kung 625cd512e6 Update bootstrap package version back to 3.0.0 2014-03-04 10:22:25 -08:00
Hao Kung 169ffaa062 Account controller using Kidentity
- Uncomment account controller and switch to KIdentity
2014-03-03 15:28:24 -08:00
Yishai Galatzer 2f8c4b213a Rename MVC -> MVC.Core requires project.json changes 2014-03-02 23:36:15 -08:00
Ryan Nowak 4022e5a5a4 Code dump of algorthmic code for url generation
This doesn't yet expose url generation via public api, that will come in
the next change.
2014-02-28 12:47:42 -08:00
Pranav K 09cc1964e7 Adding GetFormAsync on HttpRequest to read form data 2014-02-25 12:52:00 -08:00
Louis DeJardin 590ae27208 Adding ITypeActivator and TypeActivator to hosting services 2014-02-24 13:32:55 -08:00
Ryan Nowak 4f71137cbd CR feedback 2014-02-24 13:01:08 -08:00
Chris Ross c6c5dd6fbf Re-layer the feature interfaces. 2014-02-20 14:51:31 -08:00
Chris Ross ab7e4cb3c8 Prototype IServerFactory 2014-02-20 13:42:04 -08:00
Ryan Nowak 64c29fe813 Adding optional parameters 2014-02-19 12:02:02 -08:00
Pranav K fe15f4a849 Ensure HttpResponse.Query is populated with query string values 2014-02-18 09:15:13 -08:00
Chris Ross 2dac6756dc Fix json file formatting. 2014-02-17 12:16:02 -08:00
Chris Ross da1e6c3e7f Directly build IPAddress from SocketAddress. 2014-02-17 11:57:21 -08:00
Chris Ross 742db6ad65 Change to the new abstractions. 2014-02-15 15:38:17 -08:00
Pranav K ad5a77ca4c Removing csproj files that are not meant to be commited 2014-02-14 19:56:27 -08:00
GrabYourPitchforks 69addcac86 FeatureModel should use Type.IsInstanceOf rather than direct type equality. 2014-02-14 16:26:13 -08:00
David Fowler 7aeecf6bce Look for Startup and AssemblyName.Startup 2014-02-14 00:20:08 -08:00
GrabYourPitchforks 7aa23bfc05 Add DPAPI support to the DataProtection library. 2014-02-13 17:42:04 -08:00
ajcvickers d1ac4298c2 Drown your issues in Kool Aid (Updating K Music Store app to use EF/E API surface)
This updates the K version of Music Store to use the updated Entity Framework API surface from the data repro. The changes made previously to the models and controllers in the full .NET version are also included here to bring both versions into line. The code is still non-functional as it was before.
2014-02-13 08:49:26 -08:00
Yishai Galatzer a34826d90b Use the right collection, so accessing a non existent ContentType on a response doesn't throw and return null instead 2014-02-12 12:43:13 -08:00
Ryan Nowak 42ce8c6594 Adding routebuilder 2014-02-11 12:21:40 -08:00
Ryan Nowak 5ee991cf61 CR feedback 2014-02-11 11:55:02 -08:00
Louis DeJardin 14679a78ee Implementing code review feedback 2014-02-10 18:18:10 -08:00
Louis DeJardin f59d29b5eb Renaming DefaultServices to GetDefaultServices 2014-02-10 17:57:44 -08:00
Chris Ross fe1011e507 Code review cleanup. 2014-02-10 10:52:19 -08:00
Chris Ross 40a7181ff0 Lazy translate conditional Owin keys to Features. 2014-02-10 10:24:11 -08:00
Chris Ross 850128dc39 Implement request and response properties: Headers, ContentLength. 2014-02-10 10:24:10 -08:00
Louis DeJardin 0e813fbb79 Rough outline of hosting components 2014-02-09 23:25:56 -08:00
Louis DeJardin 86025a3ec4 Updated Builder constructors 2014-02-09 18:24:16 -08:00
Louis DeJardin e2f45c59ea Placing IServiceProvider on IBuilder
Replaces concept of features/items on builder instance for now
2014-02-08 16:03:59 -08:00
Ryan Nowak 179841743e updating OM of routing, about 10% better perf 2014-02-07 18:28:54 -08:00
Ryan Nowak 85225055b9 removing datatokens/constraints/url-generation 2014-02-07 18:28:53 -08:00
Ryan Nowak d4904e8701 Adding legacy rounting code - mostly unmodified to get it into history 2014-02-07 18:28:51 -08:00
Chris Ross 251630590d Initial port. 2014-02-07 17:01:08 -08:00
Chris Ross ad3112917b Update Microsoft.Owin dependencies to Microsoft.AspNet. 2014-02-07 11:29:22 -08:00
Chris Ross 86b1ac8f39 Initial static files port. 2014-02-06 15:30:21 -08:00
Ryan Nowak 0eb5ff0b87 integrating abstractions with routing 2014-02-04 12:39:19 -08:00
Ryan Nowak c796188231 integrating abstractions with routing 2014-02-03 15:56:44 -08:00
David Fowler 370a6b7ba3 Added code for the k10 case in FeatureObject. 2014-02-01 03:09:04 -08:00
David Fowler 4ce1423b1c Made small changes to prevent null refs when getting HttpRequestInformation
- Use FeatureReference<T>.Default instead of new when constructing
- Fixed  project.json in tests
2014-02-01 02:32:46 -08:00
Louis DeJardin 003718c564 Fixing build errors 2014-01-31 13:35:26 -08:00
Louis DeJardin af0923b68f Rouging out feature interfaces and default abstraction implementations 2014-01-31 13:26:10 -08:00
Louis DeJardin 4de6abb7b5 Adding a placeholder for IdmMapping 2014-01-31 13:26:06 -08:00
Ryan Nowak 84f4a2d047 Initial mock up of key interfaces for routing.
This is heavily based right now on raw Owin as the request/response model
since that will work for building samples/tests, and doesn't require
ifdefs in the code for k10. Once it's feasible, I'll port this to use the
Microsoft.AspNet.Abstractions types.

The sample here includes some basic route/endpoint implementations just to
prove that the route engine works in naive scenarios. These might live on
in the future in some form, but for now it's just part of the sample.

The next step is to integrate this with WebFX and start developing the
integration/configuration story for WebFX.
2014-01-30 11:08:19 -08:00
Ryan Nowak 9f9f92d18a Adding skeleton sample and test project 2014-01-30 11:07:52 -08:00
ajcvickers 7c96726460 Updates following code review 2014-01-29 08:39:53 -08:00
Louis DeJardin baf338cc83 Apply code formatting 2014-01-28 17:48:49 -08:00
Levi Broderick 869a4ec267 Initial implementation of Microsoft.AspNet.Security.DataProtection 2014-01-28 17:14:26 -08:00
ajcvickers 6a9b6c16c2 Everything but the kitchen async... (Updates to how Music Store controllers use data)
Specifically:
- Dispose contexts
- Use async wherever possible
- Stop using initializers (currently hard-coded to drop and recreate each run)
- Some general cleanup
- Stop using AttachDbFilename

Not included here:
- No major changes to app structure
- No major changes to data model
- No major changes to error handling, concurrency, etc.
2014-01-28 16:16:02 -08:00
Ryan Nowak c0660f347a Revert "Getting routing prototype into history"
We're not using the prototype as a base, just want to to be in the history
so we can easily refer to it.

This reverts commit 4183bc98be.
2014-01-28 14:26:58 -08:00
Ryan Nowak 4183bc98be Getting routing prototype into history 2014-01-28 14:25:49 -08:00
Ryan Nowak 876cfaeb57 checkin of project structure 2014-01-28 09:13:56 -08:00
David Fowler 53268f3c9e Initial commit.
- Added original music store and k10 and net45 versions with new framework.
2014-01-28 02:27:26 -08:00
Louis DeJardin fd9f392ec9 Fixing merge conflicts (?) 2014-01-27 12:47:14 -08:00
Louis DeJardin d6cd02d121 Updating abstractions 2014-01-27 11:46:32 -08:00
Louis DeJardin f7a4db4ae1 Roughing out more abstractions 2014-01-27 11:43:50 -08:00
David Fowler 724897d0eb Added super hacky RawOwinHttpContext for K profile. 2014-01-26 03:44:21 -08:00
David Fowler 430217e2de Remove csproj files. 2014-01-25 17:21:50 -08:00
David Fowler 62bcfc0a95 Fixed up the func. 2014-01-25 16:36:02 -08:00
David Fowler a8b4c71284 Added temporary owin glue for HttpAbstractions based on Microsoft.Owin. 2014-01-25 16:29:15 -08:00
David Fowler 242ea9a319 Updated the build. 2014-01-25 02:19:01 -08:00
David Fowler 9bc47f8698 Changed version 2014-01-24 01:19:07 -08:00
David Fowler 336e69a677 Added content type and WriteAsync as a stop gap. 2014-01-24 00:17:07 -08:00
David Fowler 76ef358974 Moved tests to test folder and renamed solution. 2014-01-23 23:54:25 -08:00
David Fowler 3ef8197d18 Updated projects and the build.
- Things compile with ifdefs for coreclr now.
2014-01-23 23:52:20 -08:00
Louis DeJardin 27ff7762e9 Updating with work in progress 2014-01-23 14:53:22 -08:00
Louis DeJardin bdf69b0d0c Initial commit 2013-12-19 11:38:05 -08:00