Commit Graph

6500 Commits

Author SHA1 Message Date
Praburaj cb9184e1c0 Prevent binding on some columns in order 2014-08-12 12:28:11 -07:00
Praburaj abd215a543 Using HttpNotFound helper in actions returning 404 2014-08-12 11:44:48 -07:00
harshgMSFT efdd3054d2 Adding DataTokens Support. 2014-08-11 11:59:00 -07:00
Praburaj ca515e3e87 Adding missing Anti-Xsrf token validations in some Post actions
1. Also adding this validation on a AJAX only used action.
2014-08-08 12:46:36 -07:00
Chris Ross 6d45f817f9 Make new overloads virtual. 2014-08-07 15:58:26 -07:00
Chris Ross 22f3d52762 #111 - Change Challenge, SignIn parameter order to support params. 2014-08-07 15:21:02 -07:00
harshgMSFT 5b849596bb Fix for Issue#55 Changing Template->RouteTemplate 2014-08-06 16:14:50 -07:00
Chris Ross 1416cc4d69 #46 - Rename Microsoft.Net.Server to Microsoft.Net.Http.Server. 2014-08-06 15:49:53 -07:00
Chris Ross 2c4811f201 Import static file tests from Katana. 2014-08-04 16:11:28 -07:00
Chris Ross 9e950fba27 More var. 2014-08-04 12:28:20 -07:00
dougbu 641816fd9b Fix build break
- no need to call (`internal`) `html.GenerateId()` method since it matches `html.Id()` exactly
- no need for `.ToString()` with either method since they return `string` now
2014-08-01 22:07:38 -07:00
Ben Brown fca9831115 Routing Logging
Added scoped logging to RouterMiddleware, RouteCollection, and
TemplateRoute.
2014-08-01 13:59:48 -07:00
Praburaj a379593746 Fixing a build break
GetClientValidationRules() method's parameter order reversed with a recent MVC change.
2014-07-31 15:08:25 -07:00
Ryan Nowak 61436fb7d1 Revert "Revert "Fix for issue 85 - Dictionary types should return null on key not found""
This is reverting the revert. We're going to go ahead with this change and
work around it in MVC.

This reverts commit 0e826e69e6.
2014-07-31 15:01:03 -07:00
Chris Ross ed38d28db4 #65 - Port more TestHost funcationality. 2014-07-31 11:37:27 -07:00
Praburaj 302f5a00fa Using auto generated id for albums 2014-07-30 15:31:13 -07:00
Praburaj 7470e3cb28 @Html.ValueFor replaced with @Html.DisplayFor
The original sample used @Html.DisplayFor. While porting I changed it to use ValueFor. Xinyang pointed out this difference.

Fixing this so that it can be easily compared with the original sample. The results of the view unchanged.
2014-07-30 15:13:25 -07:00
Praburaj 644c45ae5c Adding a _ViewStart page to define the Layoutpage
Removing the Layout page reference from individual cshtml files.
Added some tests to verify layout getting rendered in every view.
Added a couple of verifications to verify that title of the page is set appropriately.
2014-07-30 14:56:20 -07:00
Ryan Nowak 0e826e69e6 Revert "Fix for issue 85 - Dictionary types should return null on key not found"
This is causing issues with routing functional tests in CoreCLR. Suspect
CoreCLR compat issue.

This reverts commit ae65001e84.
2014-07-25 14:35:36 -07:00
Ryan Nowak ae65001e84 Fix for issue 85 - Dictionary types should return null on key not found
This change makes RouteValueDictionary a full IDictionary implementation
instead of a subclass of Dictionary.

Followed the patterns used in the old implementation, namely preserving
the struct-returning behavior of Keys/Values/GetEnumerator.
2014-07-25 13:17:52 -07:00
Pranav K 5bace02518 Removing BaseController from MusicStore
TryUpdateModelAsync was added to Controller type which removes the need
for this type
2014-07-25 10:13:51 -07:00
Chris Ross 7be9cefc4c QueryBuilder Add overload for IEnumerable. 2014-07-24 16:24:44 -07:00
Chris Ross 6fab49b6e0 #52 - Enable parallel tests by using dynamic ports. 2014-07-24 16:13:03 -07:00
Suhas Joshi 77a9885118 Handled starting IISExpress based on architecture 2014-07-24 15:39:55 -07:00
ajcvickers c28cae9e94 React to EF ModelBuilder API change 2014-07-24 14:28:51 -07:00
Chris Ross af279f6d2b #65 Add a QueryBuilder. 2014-07-24 09:10:34 -07:00
harshgMSFT 80ffd26465 Adding abstractions for request headers
viz. Accept, Accept-Charset and Content-Type.
2014-07-23 14:54:15 -07:00
Hao Kung fe30a0418e React to Identity changes 2014-07-23 12:36:21 -07:00
Chris Ross 53e38e2a23 #45 Add friendly header collection APIs for people using WebListener directly. 2014-07-23 09:18:27 -07:00
Chris Ross 384d54577e Remove unused field. 2014-07-23 09:14:34 -07:00
Praburaj b440d4ff66 Use InMemoryStore if the sample is being run on Mono
Detecting if the application is running on mono and using InMemoryStore instead of SqlServer.
2014-07-22 18:02:22 -07:00
Praburaj 91cc369f4f Fixing CopyAspNetLoader batch file to consider the new location of AspNet.Loader.dll
With a recent change Aspnet.Loader.dll will be restored to %userprofile%\.kpm\packages. Fixing the batch file accordingly.
2014-07-22 16:47:03 -07:00
Praburaj 3c0eefe12e Merging the MusicStore & MusicStoreIdentity Db into one.
This has been a feedback from identity team for a while. Just got time to do it now.
2014-07-22 16:44:23 -07:00
Chris Ross 0ba1731928 Add more feature constructors. 2014-07-17 09:57:27 -07:00
Pranav K 09267cca2f Reacting to System.Security.Cryptography.Encryption package rename 2014-07-17 09:44:03 -07:00
Pranav K 839e066d59 Reacting to System.Security.Cryptograph.Encryption package rename 2014-07-17 09:30:34 -07:00
Pranav K 4ec0532087 Reacting to System.Security.Cryptography.Encryption package rename 2014-07-17 08:39:43 -07:00
Chris Ross dc055f783a #91 Add constructors to Form, Query, and Cookie features for testing. 2014-07-16 16:12:46 -07:00
Chris Ross dd7537de4a #103 Fix ambigious Keys property on IHeaderDictionary. 2014-07-16 12:11:51 -07:00
Ryan Nowak 3eb6c22330 Make RoutePartsEqual public. 2014-07-15 14:25:05 -07:00
Hao Kung 53e4626127 React to Identity changes 2014-07-15 13:05:07 -07:00
Pranav K 0385438ed0 Reacting to System.Collections versioning change 2014-07-14 16:51:46 -07:00
Pranav K 748c5394ad Reacting to System.Collections versioning change 2014-07-14 16:47:38 -07:00
Pranav K 4bbdefbe65 Reacting to System.Collections versioning change 2014-07-14 16:26:28 -07:00
Pranav K b49b46c5b6 Reacting to System.Collections versioning change 2014-07-14 16:25:55 -07:00
Pranav K b9898ef249 Reacting to System.Collections versioning change 2014-07-14 15:54:43 -07:00
Pranav K 8ab566e049 Reverting version change to ComponentModel 2014-07-14 15:35:04 -07:00
Ryan Nowak ad0ebb9f4c cr feedback 2014-07-14 15:31:45 -07:00
Pranav K ccbf458f71 Reacting to System.Collections version change 2014-07-14 15:27:24 -07:00
Pranav K 4fc0be86b6 Reacting to System.Collections version change 2014-07-14 15:11:48 -07:00
Pranav K 6c94e0317b Reacting to System.Collections version change 2014-07-14 15:07:44 -07:00
David Fowler 30df49535c Fixed project.json casing 2014-07-13 22:49:42 -07:00
David Fowler 85d0abecad Renamed Project.json to Project.json2 2014-07-13 22:49:42 -07:00
David Fowler efd225a9cd Renamed configurations to frameworks in project.json 2014-07-13 22:31:03 -07:00
David Fowler 33cd0d89aa Renamed configurations to frameworks in project.json 2014-07-13 22:12:48 -07:00
David Fowler 0a50505f4d Renamed configurations to frameworks in project.json 2014-07-13 22:09:54 -07:00
David Fowler b2d2840a6f Renamed configurations to frameworks in project.json 2014-07-13 22:09:09 -07:00
David Fowler 25efba7563 Renamed configurations to frameworks in project.json 2014-07-13 22:06:12 -07:00
David Fowler f696a06012 Renamed configurations to frameworks in project.json 2014-07-13 22:00:44 -07:00
David Fowler 8f39f6d4b5 Renamed configurations to frameworks in project.json 2014-07-13 21:50:53 -07:00
David Fowler b6243326c3 Renamed configurations to frameworks in project.json 2014-07-13 21:50:14 -07:00
David Fowler 91ee6ed484 Renamed configurations to frameworks in project.json 2014-07-13 21:46:00 -07:00
David Fowler 4e9a6b7678 Renamed configurations to frameworks in project.json 2014-07-13 21:44:49 -07:00
turchenkoalex 1e1e55b362 Fix not shown 'exception page' on non windows system
Occurs on non windows system where Environment.NewLine is LF (1 symbol length) Unix, Linux, OS X etc. And options.ShowExceptionDetails is true.
Replaced number '2' to Environment.NewLine.Length.
2014-07-13 21:14:05 +04:00
David Fowler 221a8f4f50 Changed defines from DEBUG to DIAGNOSTICS_PAGE_MIDDLEWARE 2014-07-10 10:06:16 -07:00
David Fowler bcb816f7d1 Fixed if DEBUG 2014-07-10 09:45:36 -07:00
Chris Ross 1074fc102a OWIN WebSockets: Cleanup, docs, extension methods. 2014-07-09 17:19:41 -07:00
Chris Ross b1c82c0066 #96 Enable AspNet->Owin WebSockets. 2014-07-09 10:03:13 -07:00
Chris Ross 31edabdfcb #96 Enable Owin->AspNet WebSockets. 2014-07-09 10:03:11 -07:00
Chris Ross 1ece87ef68 Fix mispelled class name. 2014-07-09 09:28:40 -07:00
DamianEdwards db429b0d59 Updated AngularHtmlHelper based on MVC changes 2014-07-08 18:23:58 -07:00
Louis DeJardin de6c32dc4b Guarding against leaking GCHandles in read/write operations
See #19
2014-07-08 18:11:09 -07:00
Ryan Nowak 42b5aac1b1 fixing a broken link in musicstore. 2014-07-08 17:18:39 -07:00
Ryan Nowak 27d6a735af Implement a 'required' constraint
This is useful for a variety of interesting scenarios in link generation
where a default value doesn't appear in the route template as a parameter.

This can be used to implement the desired behavior for areas - where the
'area' key is sticky.
2014-07-08 16:23:14 -07:00
Louis DeJardin 2da561cb7a Garbage collecting safe handles need to queue the uv_close
All of the uv_* calls must be called on the original thread
the finalizer thread cleaning up safehandle classes needs
special handling

see #16
2014-07-08 16:02:09 -07:00
Louis DeJardin 836be5565a Using weak gchandles from native to managed
See #15
2014-07-08 14:51:13 -07:00
Chris Ross 8d270ae328 Add namespace for Response.Write extension. 2014-07-08 11:02:18 -07:00
Ryan Nowak 63dcdd6ca5 Fix for #77 - pass ambient values not in the template to constraints
This change adds tests and makes the behavior consistent with legacy MVC
as far as what values are visible in constraints.

This is important because it allows constraints to make decisions based on
whether or not a value is present even if it's not in the template. This
is similar to the behavior of WebAPI link generation or Area link
generation in MVC 5 - but without hardcoding.
2014-07-08 10:18:00 -07:00
Chris Ross 578518d5c4 #66 Add response writing extensions. 2014-07-08 09:34:57 -07:00
Louis DeJardin 21778f631a Guarding against more read_cb cases 2014-07-07 14:01:02 -07:00
Louis DeJardin 8624b82b2b Improving callback exception support
Also renaming KestralTests to KestrelTests
2014-07-07 13:08:25 -07:00
Pranav K 1e7da1dc61 Fix versioning for Microsoft.Net.WebSockets 2014-07-07 12:11:41 -07:00
Chris Ross 5bf4883cd9 #91 Provide a default constructor for DefaultHttpContext. 2014-07-07 10:48:07 -07:00
Ben Brown 0f9e232759 Updating ILogger descendants for interface change. 2014-07-03 20:06:11 -07:00
Ryan Nowak c2140666d9 fix build break in music store 2014-07-03 19:25:29 -07:00
Praburaj 0b0b5837fd A few changes with this checkin
1. Fixed the delete album action
2. Added a test for add to cart, checkout & delete an album scenarios.

With this the scenario set becomes complete.
2014-07-03 16:05:58 -07:00
Chris Ross 6edd238f38 Rename IHttpOpaqueUpgradeFeature to IHttpUpgradeFeature. 2014-07-03 14:14:07 -07:00
Chris Ross 7133ab1b2a Rename IHttpOpaqueUpgradeFeature to IHttpUpgradeFeature. 2014-07-03 14:07:38 -07:00
Chris Ross 112e3e5358 Rename IHttpOpaqueUpgradeFeature to IHttpUpgradeFeature. 2014-07-03 14:03:57 -07:00
Praburaj 047db6d5f4 Change with this submission
Fixes # https://github.com/aspnet/MusicStore/issues/105
2014-07-03 12:58:26 -07:00
Praburaj 8c7bc1a9c8 Auto id generation is available for entities
Previously the sample had work arounds to generate an id itself while adding a new item into a table. Removing the work around.
2014-07-03 12:37:31 -07:00
Praburaj 04de187189 Changing the connection strings to use Dev14 LocalDB
Addresses https://github.com/aspnet/MusicStore/issues/159
2014-07-03 12:35:52 -07:00
Chris Ross 9028c6a1a5 #88 Rename IHttpOpaqueUpgradeFeature to IHttpUpgradeFeature. 2014-07-03 11:59:22 -07:00
Louis DeJardin 747777ab54 Adding dylib binary to source control 2014-07-03 11:30:01 -07:00
Chris Ross fe0e5be913 Fix IList to IEnumerable change. 2014-07-03 10:06:24 -07:00
Chris Ross 10d8b1015e #69 Make auth APIs use IEnumerable instead of IList. 2014-07-03 09:55:10 -07:00
Praburaj 974bfcab7a Adding kestrel variation of the MusicStore tests
Variation added for both Desktop & CoreCLR.
Added some more diagnostics to help better trouble shoot with more variations.
2014-07-02 17:32:31 -07:00
Chris Ross 04f3e5283d Rename OnRequestAborted to RequestAborted. 2014-07-02 09:14:37 -07:00
Chris Ross 81c967dfa4 Rename OnRequestAborted to RequestAborted. 2014-07-02 09:04:48 -07:00
Chris Ross bc2cf1223e #89 - Rename OnRequestAborted to RequestAborted. 2014-07-01 16:24:27 -07:00
Chris Ross 1a579aba01 Add missing using. 2014-07-01 15:13:48 -07:00
Chris Ross 872f18b63b Update Claims dependency to 1.0.0-*. 2014-07-01 14:57:32 -07:00
Chris Ross 136811e732 Make IServerFactory AssemblyNeutral. 2014-07-01 14:57:29 -07:00
Chris Ross e15fe540a8 Enable custom auth challenges. Integrate IAuthenticationHandler. 2014-07-01 14:57:27 -07:00
Chris Ross 6f550d67a4 Improve the auth infrastructure. Expose the user. 2014-07-01 14:57:22 -07:00
David Fowler bb0fb639ae Updated packages due to changes in security contracts 2014-07-01 10:31:16 -07:00
David Fowler d98df8a873 Updated packages due to changes in security contracts 2014-07-01 10:22:31 -07:00
Pranav K be88722cb5 Moving SampleApp from src to samples 2014-07-01 09:24:32 -07:00
tugberkugurlu c6eff50c24 directly return inside the BuilderExtensions.UseRouter method 2014-07-01 10:03:52 +03:00
Chris Ross df425e4796 Server: Expose WebSocketOptions. Make feature replacement configurable. 2014-06-30 12:50:55 -07:00
Chris Ross b24d808b58 #10 - Rename Middleware package to Server. 2014-06-30 12:22:16 -07:00
Chris Ross 05a275faae OWIN: #87 Make IHttpAuthenticationFeature.Handler not throw. 2014-06-30 11:06:32 -07:00
David Fowler 9118d037fe Updated the kproj 2014-06-27 23:02:52 -07:00
Louis DeJardin 7c626431a1 Adding Upgrade support, using WebSocket middleware from sample app 2014-06-27 22:25:38 -07:00
Louis DeJardin 5e51783087 Recompiling windows binaries because uv_loop_size was added 2014-06-27 21:00:06 -07:00
Louis DeJardin 0f1a72e7e0 Tiny CLR won't tell you what the OS is. Assume tiny CLR is running on Windows. 2014-06-27 20:59:39 -07:00
Louis DeJardin e4b9bd265c Adjusting Kestrel to run cross platform 2014-06-27 20:01:44 -07:00
Louis DeJardin 9c29ccdd32 Cross-platform LoadLibrary, adjusting libuv apis 2014-06-27 19:45:31 -07:00
Louis DeJardin 08a3685f53 Moving native resources, updating loading code 2014-06-27 19:33:48 -07:00
DamianEdwards b9fd70b930 Fixing more tslint errors 2014-06-27 11:11:41 -07:00
DamianEdwards f1a82e6456 Fixing tslint errors 2014-06-27 11:00:37 -07:00
DamianEdwards aae0635911 Updating MusicStore.Spa for latest MVC changes 2014-06-27 10:48:11 -07:00
Chris Ross 13f4c242ab Rename T to TFeature, Creator to Factory. 2014-06-27 09:52:56 -07:00
Chris Ross f4a397dfcc OWIN: Support dynamically creatable features. 2014-06-27 09:21:06 -07:00
Chris Ross f5173e44ae Expand feature support for OWIN->K. 2014-06-27 09:21:04 -07:00
Chris Ross e7508af2d9 Include IHttpClientCertificateFeature changes. 2014-06-26 10:16:57 -07:00
Chris Ross df730a47a9 Rename CancellationToken parameter. 2014-06-26 10:11:29 -07:00
Chris Ross 55e491e354 Make CancellationToken a default param. 2014-06-26 09:32:54 -07:00
Chris Ross ff31b958fe #80 - Add CancellationToken to GetClientCertAsyc, GetFormAsync. 2014-06-26 09:32:44 -07:00
Louis DeJardin 63637be073 Listener.Dispose should block until operation is complete 2014-06-25 20:57:12 -07:00
Chris Ross 82f72581c9 Add an explict Count to IHeaderDictionary to resolve ambiguity. 2014-06-24 15:47:08 -07:00
Chris Ross f08b6a8d53 #3 - Add Count, Keys, and ContainsKey to IReadableStringCollection 2014-06-24 14:51:51 -07:00
Chris Ross 8f31665478 Make IServerFactory AssemblyNeutral. 2014-06-24 10:22:28 -07:00
Hao Kung dd1a75370d React to identity renames 2014-06-23 15:16:43 -07:00
Louis DeJardin 9e4bc60205 Adding amd64 support
Moves Libuv.dll into nupkg
Uses ILibraryManager to locate location for native libraries
Updates version numbers to 1.0.0-*
Throws exceptions with error text provided by libuv.dll
Bind to ip4 or ip6 endpoints
Getting server defaults from ini
Enabling "Kestrel" to be used as a Main entrypoint
2014-06-20 21:09:44 -07:00
Brice Lambson 54a66fc70e React to more renames 2014-06-20 09:34:14 -07:00
David Fowler d803dc84d8 Fixed websockets version 2014-06-20 00:11:30 -07:00
David Fowler 32cd4db959 React to Helios rename 2014-06-19 22:26:28 -07:00
Brice Lambson d1e8cdc95c Fix version of Microsoft.AspNet.Razor reference 2014-06-19 17:37:00 -07:00
Brice Lambson 6d56ee2471 Bump version to 1.0.0-* 2014-06-19 17:11:14 -07:00
Brice Lambson 7a9590e8d5 Bump version to 1.0.0-* 2014-06-19 16:58:34 -07:00
Brice Lambson 227ecdaf93 Bump version to 1.0.0-* 2014-06-19 16:52:51 -07:00
Brice Lambson a0a0db9856 Bump version to 1.0.0-* 2014-06-19 16:46:05 -07:00
Brice Lambson 7f1135cec3 Bump version to 1.0.0-* 2014-06-19 16:33:18 -07:00
Brice Lambson 64850167a1 Bump version to 1.0.0-* 2014-06-19 16:32:13 -07:00
Brice Lambson 301432e5cb Bump version to 1.0.0-* 2014-06-19 16:13:11 -07:00
Brice Lambson 9df90f615b Bump version to 1.0.0-* 2014-06-19 16:10:41 -07:00
Brice Lambson b41abcffa6 React to version bumps and renames 2014-06-19 16:00:13 -07:00
harshgMSFT cef4a3ec05 Removing dictionary overloads from MapRoute. 2014-06-19 14:38:08 -07:00
Chris Ross 741d5b57ee Include client certificate feature renames. 2014-06-19 13:44:24 -07:00
Chris Ross b6f4207b3b #70 - Refactor client cert feature interface. 2014-06-19 11:46:13 -07:00
David Fowler ecfd1bbe60 Removed System.IO.FileSystem.Primitives dependency 2014-06-19 09:47:29 -07:00
Chris Ross 80eb5ab745 Use updated request cancellation API. 2014-06-19 09:12:02 -07:00
Chris Ross 2ae3a24a16 Remove CallCancelled property. Fix Owin query string. Add Owin user. Add Owin tests. 2014-06-19 09:02:49 -07:00
Chris Ross 07fc434cab Cleanup sample, #regions, dependencies. 2014-06-19 08:59:18 -07:00
Chris Ross 577b074024 WebSockets cleanup. 2014-06-19 08:59:14 -07:00
Chris Ross a3dfa41372 Add WebSocket tests. Fix Connection header. 2014-06-19 08:59:10 -07:00
Chris Ross d1dab1665e Expose Opaque and WebSockets. 2014-06-19 08:58:59 -07:00
harshgMSFT fbffcb7b40 Adding Remaining Inline Route Constraints. 2014-06-18 16:29:49 -07:00
Louis DeJardin 17e566c5d1 Adding "server.urls" configuration support to kestrel 2014-06-17 22:45:53 -07:00
Louis DeJardin 45933b149e IServerFactory is never a registered service
IServerManager is registered when needed

Or the caller may provide context.ServerFactory instance when an
override is needed
2014-06-17 15:10:13 -07:00
Stephen Halter 0ab560e086 Add UseServices overload that takes a Func returning IServiceProvider
- This should be useful for third-party IoC containers
2014-06-16 18:32:20 -07:00
DamianEdwards 7ec9c71181 MusicStore.Spa changes:
- Make the account manage page work
- Changed ngTextBoxFor extension not use the base TextBoxFor helper as it was adding unwanted client validation attributes
- Fix controller route
2014-06-16 18:09:08 -07:00
DamianEdwards 4a4fe86df4 Changed use of custom SmartJsonResult to JsonResult in MusicStore.Spa 2014-06-16 15:55:50 -07:00
DamianEdwards 2934514909 Fix MusicStore.Spa:
- Support self-host via commands
- Comment out calls to EF APIs that throw NIE
2014-06-16 15:00:57 -07:00
harshgMSFT 0ca5576926 StyleCop Fixes for routing. 2014-06-16 11:18:01 -07:00
Louis DeJardin 6ac6419f4f Adding support for 'k web --server kestrel' 2014-06-13 13:10:46 -07:00
Chris Ross 434a128f1a Rename AcceptWebSocket to AcceptWebSocketAsync. 2014-06-13 08:37:23 -07:00
David Fowler 32aa84d975 Fixed project.json casing 2014-06-13 07:32:14 -07:00
David Fowler 0c0321c694 Renamed Project.json to Project.json2 2014-06-13 07:32:13 -07:00
Chris Ross 2deea2c299 Delete old file. 2014-06-12 20:16:25 -07:00
Chris Ross 7484db54c6 Compile for CoreClr. Seperate Client project. Rename everything. 2014-06-12 20:11:12 -07:00
Ryan Nowak c5593491e0 fix breaking change from mvc 2014-06-12 17:21:07 -07:00
Chris Ross b9d7561bf9 Enable WebSocket and Opaque features. 2014-06-12 15:05:58 -07:00
DamianEdwards ced2c3950f Delete pre-processed *.ng.ts files from repo 2014-06-12 10:24:59 -07:00
Stephen Halter abbd763f0f Use GetServiceOrDefault for optional dependency 2014-06-11 18:32:40 -07:00
Louis DeJardin 9c7cb6a958 Adding some tests for Http11
Requires updating to test utilities
Adding initial EventSource to try to see some order of events
2014-06-11 17:09:25 -07:00
Louis DeJardin 660babcd7f Adding core clr configurations 2014-06-10 00:29:16 -07:00
Pranav K a1fe088d3a Removing RouteContext.RequestPath and calculating it from HttpContext as needed. 2014-06-09 11:18:49 -07:00
David Fowler ad738561af Fixed project.json casing 2014-06-08 23:39:09 -07:00
David Fowler 75d0b29954 Renamed Project.json to Project.json2 2014-06-08 23:39:08 -07:00
Louis DeJardin ebd6af0fd6 Trying to get 100 Continue working again 2014-06-08 01:03:56 -07:00
Louis DeJardin 044bbb83e6 Getting request body variations to work 2014-06-07 02:49:25 -07:00
Louis DeJardin 313db3f0cf Removing unnecessary using statements 2014-06-06 22:16:08 -07:00
Louis DeJardin e517e39aac Not working, but worth taking a snapshot of the source 2014-06-06 22:13:31 -07:00
harshgMSFT a499d4a92a Routing DI Changes II : Adding services for routing. 2014-06-06 17:08:01 -07:00
ajcvickers b53404596f Updating to add new parameter for Navigation class 2014-06-06 15:04:53 -07:00
Praburaj 2f88fb4d9d Removing work around applied
Bug https://github.com/aspnet/identity/issues/102 is fixed. Removing the work around applied for the same.
2014-06-06 12:10:46 -07:00
Ryan Nowak d112adc1f2 Fix breaking changes from MVC 2014-06-06 11:26:50 -07:00
Ryan Nowak 28b89c8fe5 Changing to list 2014-06-06 10:16:47 -07:00
Ryan Nowak d10682d15b Issue aspnet/Mvc#56 - merging RouteContext and RequestContext
This is the routing part of these changes, and just the breaking changes
parts.

Follow-ups will add:
- DataTokens
- Tracking the logical stack of routers
2014-06-06 10:11:57 -07:00
Ryan Nowak 1d4ceef81b Turning on warnings as errors for routing 2014-06-04 18:42:41 -07:00
Ryan Nowak 4a51ced5de Fix project file 2014-06-04 13:02:37 -07:00
Hao Kung 892afc5fab React to Identity API changes 2014-06-04 11:13:13 -07:00
Praburaj a7e4fa9c9d OptionsServices.GetDefaultServices() call no longer required
This is in response to a recent change.
2014-06-03 17:02:07 -07:00
harshgMSFT 1d3e41560c Routing DI Changes I:
Moving out Default Handler and IInlineConstraintResolver from RouteCollection.
	These are moved to a new interface IRouteBuilder, (instead of an IInlineConstraintResolver, it takes in an IServiceProvider).
	This means all RouteCollectionExtensions are moved to RouteBuilderExtensions.
2014-06-03 16:50:48 -07:00
Louis DeJardin c9d6db14bc Adding an engine, a thread manager, an accept loop 2014-06-03 16:41:55 -07:00
Hao Kung 3fb1a06e25 Add OptionsServices in UseServices 2014-06-03 15:03:57 -07:00
Louis DeJardin 1b412bc99f Adding libuv p/invokes 2014-06-02 16:32:31 -07:00
Louis DeJardin 3404100f08 Adding empty projects and solution 2014-06-02 16:31:33 -07:00
Chris Ross 271a8714d8 Remove ChannelBinding stub, it's now available. 2014-06-02 09:25:57 -07:00
Chris Ross 25db412332 Clean up IApplicaitonLifetime service injection. 2014-05-30 16:30:51 -07:00
Ryan Nowak 5616ce0bfa Fix for #36 - IBuilder extension methods should take IRouter 2014-05-30 15:57:40 -07:00
Chris Ross 9191bddf00 Wait for requests to drain during shutdown. 2014-05-30 15:54:03 -07:00
Chris Ross 43ae61f7bc #23 - Implement graceful shutdown. 2014-05-30 15:49:14 -07:00
harshgMSFT 5dc8267920 Adding Tests for InlineRouting Support. 2014-05-30 12:56:04 -07:00
harshgMSFT 2e96ba5862 Updating Class and file names according to PR feedback. 2014-05-30 12:40:42 -07:00
harshgMSFT ff3f011ca8 Responding to comments 2014-05-30 12:40:25 -07:00
harshgMSFT 9885830200 Support for InlineConstraints in Route Template 2014-05-30 12:39:25 -07:00
harshgMSFT 187d8e4911 Support for InlineConstraints in Route Template 2014-05-30 12:28:14 -07:00
Praburaj 6cd501c5f7 Work around for the identity bug to unblock CI test
Identity internally overrides the explicitly specified connection string by overriding it with a default value. This results in reusing a default database causing test failures. Until identity is fixed this is a work around.
2014-05-30 12:19:19 -07:00
Brice Lambson 9cb6325bf3 React to aspnet/EntityFramework#264 2014-05-28 14:36:10 -07:00
Hao Kung 083601c539 Add options services to Startup 2014-05-28 13:43:13 -07:00
Hao Kung 043dbb2940 Changes for OptionsModel 2014-05-28 12:51:48 -07:00
Hao Kung a2fd1e1d90 Remove options services from UseServices
Add OptionsModel.OptionServices.DefaultServices instead
2014-05-28 12:09:29 -07:00
Praburaj b8782ee2bf Adding a REST method to the StoreManagerController for automation purpose.
Adding this action to get Id of an album given an album name.
2014-05-27 17:29:19 -07:00
DamianEdwards eb9ee643a1 Fix Spa after breaking change in MVC
- Reordered TypeScript targets to before AspNet targets to fix build in VS issue
- Refactored the TryUpdateModel workaround in BaseController
2014-05-27 16:54:10 -07:00
ajcvickers ad49e49b7f Pass DbContextOptions directly to base DbContext constructor. 2014-05-27 12:48:24 -07:00
David Fowler aa76fe3b4f Fixed project.json casing 2014-05-27 00:23:05 -07:00
David Fowler 60812e51f1 Fixed project.json casing in kproj 2014-05-26 02:55:37 -07:00
David Fowler 44eddb1a97 Fixed project.json casing 2014-05-26 02:54:11 -07:00
David Fowler bde341caed Fixed project.json casing 2014-05-26 02:51:56 -07:00
David Fowler 124749de28 Fixed project.json casing 2014-05-26 02:49:34 -07:00
David Fowler ced5d8697e Fixed project.json casing 2014-05-26 02:48:39 -07:00
David Fowler 49196aaec3 Fixed project.json casing 2014-05-26 02:47:54 -07:00
David Fowler 66ea95eb49 Fixed casing of project.json 2014-05-25 10:07:13 -07:00
David Fowler 88b0c498d6 Renamed Project.json to Project.json2 2014-05-25 10:07:13 -07:00
David Fowler 57717dd325 Fixed casing of project.json 2014-05-25 10:04:11 -07:00
David Fowler e5724c7301 Renamed Project.json to Project.json2 2014-05-25 10:04:11 -07:00
David Fowler f656f0dfe2 Fixed casing of project.json 2014-05-25 10:03:44 -07:00
David Fowler 07daba4457 Renamed Project.json to Project.json2 2014-05-25 10:03:44 -07:00
David Fowler 372e31ab59 Fixed casing of project.json 2014-05-25 09:59:16 -07:00
David Fowler d6c4ebd0e0 Renamed Project.json to Project.json2 2014-05-25 09:59:16 -07:00
Praburaj 11a71e950d Adding some more test scenarios to MusicStore and moving the scenarios in methods. 2014-05-23 16:11:56 -07:00
Praburaj 8409e9518b Catching up MusicStore app with code generated with latest templates 2014-05-23 14:35:08 -07:00
DamianEdwards a16d9b41d8 Tweaking connection strings to avoid conflicts between the projects 2014-05-22 17:03:08 -07:00
Praburaj 81e1e00d78 Removing k.ini to run against latest KRE version 2014-05-22 12:23:56 -07:00
Praburaj dc9c16ff64 Cleaning up project.json of MusicStore app 2014-05-21 11:56:39 -07:00
DamianEdwards 0a60ac200a Updated TypeScript targets in MusicStore.Spa so TypeScript tooling works 2014-05-19 15:16:24 -07:00
Praburaj 3e536055ba Replacing fixed build numbers with * to enable CI build
Created a master branch with fixed build numbers that we used for alpha. Dev branch will build with latest product builds.
2014-05-19 13:23:53 -07:00
Pranav K e36eb0ffb6 Updating kproj file to match tooling changes 2014-05-18 22:34:02 -07:00
Pranav K 927ebb7b75 Updating kproj file to match tooling changes 2014-05-18 20:13:57 -07:00
Pranav K 475294688e Updating kproj file to match tooling changes 2014-05-18 20:13:57 -07:00
Pranav K d8da964e88 Updating kproj file to match tooling changes 2014-05-18 20:13:56 -07:00
Pranav K cab0d80f9d Updating kproj file to match tooling changes 2014-05-18 20:13:55 -07:00
Pranav K aa9b259da7 Updating kproj file to match tooling changes 2014-05-18 20:13:55 -07:00
Pranav K fae42b596d Updating kproj file to match tooling changes 2014-05-18 20:13:54 -07:00
Pranav K 5c76e34749 Updating kproj file to match tooling changes 2014-05-18 20:13:54 -07:00
DamianEdwards 0bd2d6af9e Added port of SPA app to vNext as MusicStore.Spa
- Front-end store (catalog) and login with validation working
- Admin pages not working yet
2014-05-16 16:54:27 -07:00
Hao Kung 1189f10ba8 Move Options to UseServices
Hosting default services wasn't working as expected,
UseServices
2014-05-15 18:11:51 -07:00
Hao Kung 8695da085b Add IOptionsAccessor as a default service 2014-05-15 16:24:39 -07:00
ajcvickers 86e02878ed Update Music Store to use new EF EnsureCreated method.
Also updating project.json to pin the new EF build.
2014-05-13 16:58:15 -07:00
Victor Hurdugaci e997363b82 Pin to build 1678 2014-05-12 16:35:53 -07:00
kirthik ce13e28405 Merge pull request #107 from aspnet/ReadmeUpdates
Readme updates and deleted build.cmd, lkg.json, kvm.cmd
2014-05-12 16:32:10 -07:00
Kirthi Krishnamraju 82ac180535 modified readme based on pr comments, deleted build.cmd and lkg.json 2014-05-12 16:30:09 -07:00
Hao Kung 9deabcb459 Clean up identity DI 2014-05-12 15:51:51 -07:00
Kirthi Krishnamraju 6196e60f91 Updated Readme.md and k.ini to use 0421 build. Deleted kvm.cmd 2014-05-12 11:51:51 -07:00
Chris Ross 2dffa63c3d Update generated view files. 2014-05-12 10:47:12 -07:00
Chris Ross 6cd3ce7a5a Fix ASP.NET casing. 2014-05-12 10:46:33 -07:00
Chris Ross 2ef957aac2 Update runtime dependency. 2014-05-12 10:41:48 -07:00
Hao Kung 3fcfaeb4e0 Cleanup identity comments 2014-05-12 10:14:55 -07:00
Praburaj 909941fa51 Removing the InMemory store for EF data in CoreCLR. 2014-05-12 08:37:55 -07:00
Victor Hurdugaci dcc55c97ba Multiple active result sets 2014-05-11 10:04:20 -07:00
Praburaj 50c9a1de51 Fixing a bug in the sample
When creating a new album an album is not generated - resulting in records being created with Id = 0.
2014-05-09 21:16:06 -07:00
Chris Ross 9bdd0bc26e Remove unused DI dependency. 2014-05-09 15:59:40 -07:00
Chris Ross 522b037771 #14 - Update welcome page text and links. 2014-05-09 12:42:46 -07:00
Chris Ross 5a09690447 #22 - Use binding flags to locate method. 2014-05-09 11:19:17 -07:00
Praburaj 1cfe90ae81 web command format change
server.name is changed to server in the command expansion.
2014-05-09 09:57:39 -07:00
Chris Ross afa87bf857 #22 - Make UseMiddleware look for any Invoke method. 2014-05-09 09:17:27 -07:00
Praburaj 6a442d6a53 Changing the Startup.Configuration method name to Configure per the recent change. 2014-05-09 09:14:43 -07:00
Andrew Peters ae806e1ce5 Updating copyright headers 2014-05-08 23:01:40 -07:00
Andrew Peters feb150570a Updating copyright headers 2014-05-08 23:01:29 -07:00
Andrew Peters 00d49bbd60 Updating copyright headers 2014-05-08 23:01:09 -07:00
Andrew Peters 54c9794c2a Updating copyright headers 2014-05-08 23:00:53 -07:00
Andrew Peters b2a8c3db41 Updating copyright headers 2014-05-08 23:00:47 -07:00
Louis DeJardin 7edc2dfbe9 Fixing unit tests 2014-05-08 22:36:56 -07:00
Praburaj ab0dc92eb6 Removing the IApplicationEnvironment interface from code
With a recent change the file based configuration source will automatically look for the file in the application
base path. So getting the base path from IApplicationEnvironment service is no more necessary.
2014-05-08 21:08:28 -07:00
Louis DeJardin 55271e8719 Supporting Startup method dependency injection
also changes method name from Configuration to Configure
also supports enviroment name command line and
2014-05-08 20:38:36 -07:00
ajcvickers 66b06950d5 Updating AddEntityFramework call to not use nested closure. 2014-05-08 16:01:56 -07:00
Javier Calvarro Nelson 7580a9a291 Changed the default status code of ResponseInformation to 200 in
order to be consistent with the behavior of the rest of the hosts.
2014-05-08 14:22:31 -07:00
Chris Ross 72e14ebd6f Copy the tests for the lower level API. 2014-05-08 12:05:57 -07:00
Wei Wang 9434bbc8e3 Sort dependencies and remove duplicates in dependencies 2014-05-08 11:49:47 -07:00
Wei Wang 4d302eea1a Merge branch 'sort-dependencies' into dev 2014-05-08 11:19:19 -07:00
David Fowler efc77e60e0 More fallout from the rename 2014-05-08 10:08:17 -07:00
David Fowler 8ed808890c React to renames 2014-05-08 04:04:37 -07:00
David Fowler 03cffeb451 React to renames 2014-05-08 03:49:01 -07:00
Praburaj dfe6382463 appSetting "K" to specify the CLR to be loaded is not being honored
Removing the appSetting from web.config
2014-05-07 22:47:04 -07:00
Praburaj 9ecdeda83e Removing Logging related interfaces from sample
Now that we have a NullLogger as a part of Hosting. So we don't need to add this service in the sample.
2014-05-07 22:18:46 -07:00
Praburaj f9693488ca Verified the bug in the [Compare] dataannotation attribute.
https://github.com/aspnet/WebFx/issues/247
Since ModelState.IsValid is now a bool removing the ==true check.
2014-05-07 22:06:16 -07:00
Wei Wang 9c5253a415 Sort dependencies and remove duplicates in dependencies 2014-05-07 18:28:44 -07:00
Wei Wang a2b1dbdaa4 Sort dependencies and remove duplicates in dependencies 2014-05-07 18:10:40 -07:00
Wei Wang 96568362ea Sort dependencies and remove duplicates in dependencies 2014-05-07 17:47:44 -07:00
DamianEdwards d4efedeb17 Added new SPA port of original Music Store app 2014-05-07 17:44:01 -07:00
Hao Kung 4c026726f6 Reenable Admin creation 2014-05-07 17:39:16 -07:00
Hao Kung be912b15dc Switch to identity Sql 2014-05-07 17:37:23 -07:00
Praburaj 4f7a0390c9 Enabling code for [ValidateAntiForgeryToken] in the sample. 2014-05-07 17:31:57 -07:00
Wei Wang 73792af799 Sort dependencies and remove duplicates in dependencies 2014-05-07 16:59:22 -07:00
Wei Wang b94cb1e893 Sort dependencies and remove duplicates in dependencies 2014-05-07 16:24:26 -07:00
Glenn Condron 4d78121aa4 Wrap HttpContext in an ObjectHandle to avoid cross domain issues 2014-05-07 15:11:50 -07:00
Praburaj 32ed9c513a Adding k.ini to enable running on Helios
Also fixed the name of the package Microsoft.ComponentModel.DataAnnotations -> Microsoft.DataAnnotations
2014-05-07 14:46:08 -07:00
DamianEdwards 61beff8fd1 Added grunt to do JS & CSS validation:
- Updated JS & CSS files according to errors reported
- Updated sake script to find all npm/grunt folders and operate on those, rather than on root

Build installs node/npm locally before running grunt

Refactored makefile.shade a little
2014-05-07 14:03:42 -07:00
ajcvickers 4120269fb5 Updating for SqlServerConnectionString => UseSqlServer change 2014-05-07 10:27:59 -07:00
Chris Ross af38d26fe7 Provide empty logger factory service. 2014-05-07 09:12:13 -07:00
Chris Ross 98f14182b1 Remove AssemblyInfo files. Remove direct OWIN references. 2014-05-07 09:04:34 -07:00
Chris Ross 12658bb325 Flatten subnamespaces. 2014-05-06 15:22:45 -07:00
Chris Ross 4e36207b14 Owin adapter: Fix FeatureMap constructor visibility. 2014-05-06 15:08:50 -07:00
Wei Wang 7c7efeda57 Fix ordering of usings and dependencies after namespace renaming 2014-05-06 14:59:55 -07:00
Chris Ross e651ebf6aa Fixing missing FileSystem dependency. 2014-05-06 14:33:43 -07:00
Wei Wang 81abb2d431 Fix ordering of usings and dependencies after namespace renaming 2014-05-06 14:25:07 -07:00
Praburaj adef8c9093 Fixing the DI namespace in Program.cs 2014-05-06 13:09:12 -07:00
Praburaj adb50f7fdc Logging package name changed
1. Fixed the package name in project.json
2. Updated the namespaces.
2014-05-06 13:00:32 -07:00
Chris Ross 13e595ee18 Fix Logging dependency. 2014-05-06 12:09:02 -07:00
Praburaj 77887f126c Changing DI package and namespace
Dependency injection package changed from Microsoft.AspNet.DependencyInject to Microsoft.Framework.DependencyInjection
2014-05-06 12:05:51 -07:00
Praburaj be977fbc56 IBuilder moved to the namespace Microsoft.AspNet.Builder. Fixing it in the musicstore. 2014-05-06 12:02:55 -07:00
Pranav K 4a2a525b47 Changes to match package and namespace renames 2014-05-06 12:00:48 -07:00
Chris Ross 7a855ba626 Remove unused DI dependency. 2014-05-06 11:25:54 -07:00
Chris Ross 3b57674141 Update DI dependency. 2014-05-06 11:11:00 -07:00
Chris Ross 0c48454ad2 Fix HttpAbstractions dependency issues. 2014-05-06 10:39:14 -07:00
David Fowler 3c38eb1f35 React to renames 2014-05-06 00:35:11 -07:00
David Fowler b0dc6c95f8 React to more renames 2014-05-06 00:22:55 -07:00
David Fowler f72de34e10 Move extension methods to builder namespace and fix sample 2014-05-06 00:17:09 -07:00
David Fowler a4816ab782 React to renames 2014-05-06 00:02:26 -07:00
Chris Ross 8b26f1d319 Move IBuilder and related components to the Ms.AspNet.Builder namespace. 2014-05-05 21:05:21 -07:00
Wei Wang 2ab97f7d42 Update dependency namespace 2014-05-05 20:29:10 -07:00
Wei Wang bc93ff9aec Update dependency namespace 2014-05-05 20:08:02 -07:00
Wei Wang d8ff084dc1 Update dependency namespace 2014-05-05 19:55:23 -07:00
Wei Wang f66a0cb429 Remove unused dependency 2014-05-05 19:16:34 -07:00
Chris Ross 1952e683ac Fix a few more HttpAbstractions references. 2014-05-05 18:24:59 -07:00
Pranav K bc31b50b45 Incorporate name changes from HttpAbstractions 2014-05-05 17:20:13 -07:00
Chris Ross 903197e1ce Fix HttpAbstraction dependencies. 2014-05-05 17:14:45 -07:00
Praburaj c638a77ec9 Updating the MusicStore to use tooling. 2014-05-05 17:02:33 -07:00
Praburaj 6cb38d7926 A few fixes with this checkin:
IBuilder moved to Microsoft.AspNet.Http namespace. Fixing the build break.
Changing the version number for Microsoft.ComponentModel.DataAnnotations package to 0.1-alpha-*.
2014-05-05 17:00:49 -07:00
Ryan Nowak 8fcddc12e7 Incorporate name changes 2014-05-05 16:54:45 -07:00
Chris Ross 3141543f04 Fix HttpAbstractions dependency renames. 2014-05-05 16:26:26 -07:00
Brice Lambson 06d962291f React to EF package renames
This is part of aspnet/Data#132
2014-05-05 16:09:46 -07:00
Chris Ross 0ecb989103 Name Microsoft.AspNet.Abstractions to Microsoft.AspNet.Http. 2014-05-05 16:04:53 -07:00
Chris Ross 7fd80850ee Rename all feature interfaces to I*Feature. 2014-05-05 14:33:41 -07:00
ajcvickers bb427ee393 Reacting to EF class renaming. 2014-05-05 13:43:44 -07:00
Praburaj cad71fd030 Fixing a compilation warning in AccountController. 2014-05-05 11:40:50 -07:00
Hao Kung 36770ccf05 Update with latest Identity API changes 2014-05-05 11:35:18 -07:00
Ryan Nowak dfd4ba4b1b Fixing routing for package changes in reflection 2014-05-05 10:24:29 -07:00
Chris Ross f11e62d0ef Update reflection dependency. 2014-05-05 10:20:46 -07:00
DamianEdwards 6ff73d50e0 Minor changes:
- Fixed mismatched quotes
- Made PageGenerator depend directly on Razor instead of Mvc, as that's all it needs
- Rebased on latest dev changes
- #11
2014-05-02 22:51:29 -07:00
DamianEdwards 257b2abc43 Removed jQuery from the error page:
- All functionality working
- Tested in IE11/10/9/8 (via emulation mode), and Chrome latest
- Made the clickable areas cursor a pointer
- #11
2014-05-02 22:40:28 -07:00
anpete 35fcc7a579 Update file headers 2014-05-01 17:43:17 -07:00
anpete 29041eaad8 Update file headers 2014-05-01 17:41:49 -07:00
anpete 51317a7039 Update file headers 2014-05-01 17:41:33 -07:00
anpete 35f921856f Update file headers 2014-05-01 17:39:31 -07:00
anpete e645599aa6 Update file headers 2014-05-01 17:39:17 -07:00
anpete 27d59cd80b Update file headers 2014-05-01 17:36:30 -07:00
Praburaj 65d4057132 Injecting ApplicationUserManager in AccountController
Injecting IConfiguration to MusicStoreContext
2014-05-01 16:47:01 -07:00
DamianEdwards b4de33eeea Added a console app to generate the Razor pages
- Replaces the TT files previously being used (in Katana)
- Modified the include file logic to work better with the new generated Razor output as the old syntax/logic didn't work well with the additional line pragmas, etc. being emitted
- Updated the middleware to work with new generated output (ExecuteAsync instead of Execute, etc.)
- Fixed a scoping issue in Error.cshtml
- gitignore sln.ide cache directory
- #3
2014-05-01 16:24:03 -07:00
Chris Ross 7555b17d41 Update filesystem dependencies. 2014-05-01 15:37:23 -07:00
Praburaj 3ae8b93e26 General clean up to the musicstore app
1. Removed many unncessary comments
2. Added comments to Startup.cs
3. Fixed some code comments across the app
4. Renamed Config.json -> LocalConfig.json to reflect the scenario
2014-05-01 15:32:21 -07:00
Chris Ross 570a14dcd1 Remove unused filesystem dependency. 2014-05-01 14:23:25 -07:00
Chris Ross 95667dba69 Remove unused filesystem dependencies. 2014-05-01 14:15:11 -07:00
Praburaj 10a280580c Fixing compilation errors in the view components.
Marked one of the controller actions with [HttpGet] to prevent it being chosen for non get methods.
2014-05-01 13:06:13 -07:00
Chris Ross a78d5ac019 Remove unused FileSystem dependencies. 2014-05-01 12:31:44 -07:00
Praburaj b15aa91661 Modifying the sample to use kvm, k web and k run to run the application.
Also modified the readme file to reflect this. Deleted Selfhost.cmd and CustomHost.cmd.
2014-05-01 10:59:06 -07:00
Praburaj 0fe79d94b3 Updating musicstore code to use the ValidationMessageFor Html helper. 2014-05-01 10:20:11 -07:00
harshgMSFT ab323ac8df Updating Startup.cs to incorporate use route name. 2014-04-30 16:50:35 -07:00
Chris Ross 61924dd73e Fix renamed IContextAccessor APIs. 2014-04-30 15:43:21 -07:00
Wei Wang ce0e1128d5 Make HTTP feature interfaces assembly neutral 2014-04-30 11:46:23 -07:00
Chris Ross 98f4212915 #20 - Add Use extension for inline middleware. 2014-04-30 11:35:49 -07:00
Chris Ross 5557b959c4 #20 - Port Map and MapWhen. Move Run. 2014-04-30 11:35:45 -07:00
harshgMSFT 950ce56ea5 Adding Support for NamedRoutes.
- Interface Changes.
- RouteCollectionExtensions
- Tests for Named Routes
2014-04-30 11:23:54 -07:00
David Fowler 7b4e1fd48e Added DPAPI implementation that works on mono 2014-04-29 23:58:53 -07:00
David Fowler 83663f789b Added support for protected data style DPAPI
- This won't work across core clr and desktop and mono but
 that's ok for the moment because it unblocks things
2014-04-29 23:07:29 -07:00
Praburaj 49e0d42ce7 Improving the sample data insertion time.
1. Using dictionaries instead of lists to look up Artists and Genres by name
2. Sample data insertion time decreased to 333ms from 619 ms with this change.
2014-04-29 16:37:56 -07:00
Suhas Joshi 1a92b3048f Updated CreateAdmin method to return Task and added wait statement 2014-04-29 16:19:43 -07:00
ajcvickers 30dac08fe8 It's DbDatabase! (Updating for changes to database creation APIs) 2014-04-29 10:27:03 -07:00
Praburaj b7a989256f Few changes with this checkin:
1. Enabling a work around to add an album to the store (Due to bug# https://github.com/aspnet/WebFx/issues/339) currently its not possible to create / edit an album in the store.
2. Removing a not necessary route from the webFx routes - A previous CR feedback.
2014-04-28 18:02:21 -07:00
Praburaj e324f989e7 EditorForModel and EditorFor Html helpers are available now.
EditorForModel and EditorFor Html helpers are available now. Updating the sample to use those helpers.
2014-04-28 17:04:55 -07:00
Chris Ross cfe76de294 #53 - Reduce auth exceptions for missing handlers. 2014-04-28 16:18:58 -07:00
Praburaj 80bccdd810 A bug in authorization filter fixed. Modifying sample to use the fix.
A bug in authorization filter at a controller level failing to honor a [AllowAnonymous]
override at an action level was fixed. Modifying the sample to use the fix.
2014-04-28 16:17:23 -07:00
Praburaj e57ca9ab61 A bug in Html Summary when trying to render error messages in a model state error bag is fixed.
Modifying the sample to use the fix.
2014-04-28 16:15:14 -07:00
Praburaj 92904e0d9e Bug in filtering a claim of a specific type and value is now fixed.
Modifying the sample to use the fix.
2014-04-28 16:12:08 -07:00
Chris Ross 8e23200fd2 #3 - Implement IHttpRequestLifetime 2014-04-28 14:54:33 -07:00
Chris Ross e2d8020727 #20 - Enable SendFile on CoreClr. 2014-04-28 12:32:17 -07:00
Praburaj 4a26d740b5 Issue related to having multiple antiforgery token helpers in a single page is now fixed with latest build.
I'm uncommenting the code to accomodate the fix now.
2014-04-28 12:08:59 -07:00
Praburaj a0f5369a20 Model binding can now handle nullable enums. Bug (https://github.com/aspnet/WebFx/issues/256) was fixed to address this.
Deleting the comment and uncommenting the sample code.
2014-04-28 11:01:46 -07:00
Praburaj 647ac5dac0 Modifying the Helios.cmd, Selfhost.cmd and CustomHost.cmd to start the application on different ports on different hosting models.
This will help us to root cause issues faster with fewer questions.
2014-04-28 10:32:59 -07:00
Praburaj acb8421c90 Enabling Url.IsLocalUrl in the music store code 2014-04-25 15:58:20 -07:00
Praburaj 23fb4d8e7d 1. Enabling code to use the [Authorize] filter
2. Marked a few places with bug#s with work arounds
3. Making the app run on CoreCLR by default again (which I reverted by mistake in a previous submit).
2014-04-25 14:06:38 -07:00
ajcvickers 9d25c0b1f1 Updating EntitySet/EntityContext to DbSet/DbContext 2014-04-24 17:19:01 -07:00
Chris Ross 78bb008681 #38 - Provide a default dictionary for HttpContext.Items that returns null for missing values. 2014-04-24 16:27:18 -07:00
Praburaj 8bd2d01b11 Adding the switch to turn on Helios errors when deployed to remote.
Currently the detailed errors are displayed only for local requests.
2014-04-24 14:53:19 -07:00
Chris Ross 8ad7b489e2 #18 - Add interfaces for request lifetime management. 2014-04-24 14:44:50 -07:00
Praburaj 470f217374 HttpContext.User is being populated with an anonymous identity with a recent change. So I dont have to check for null before.
Fixing the app accordingly.
2014-04-24 14:35:14 -07:00
ajcvickers cda544c04b IServiceProvider no longer available from EntityConfigurationBuilder. Using ISP passed to context instead. 2014-04-24 14:16:24 -07:00
GrabYourPitchforks 4077c03a7b Hosting: Throw if startup method isn't void-returning. 2014-04-24 12:54:50 -07:00
Chris Ross b751cf19d0 #34 - Make HttpContext.User return non-null. 2014-04-24 12:43:15 -07:00
Praburaj 5bd052efaa 1. Making configuration as a service to read configuration settings from various places in the app
2. Reversed the order of registration of Environment source & json source as the logic for source override changed.
3. Taking a snapshot of the latest packages.
2014-04-23 15:16:58 -07:00
Chris Ross 66495cdc58 Add missing namespace. 2014-04-23 14:15:41 -07:00
Chris Ross 4a5de61cd1 OWIN: Change interop extension methods. 2014-04-23 12:01:25 -07:00
David Fowler 93a2ab2352 Fixed the configuration model and other compilation errors 2014-04-23 09:02:07 -07:00
Praburaj 1cc6445c49 Adding a temporary work around for a bug in ValidationSummary html helper that surfaces during register page.
Cleaning up a Dispose method in one of the controllers - all others have been cleaned up before.
2014-04-22 17:39:31 -07:00
Hao Kung 5ba60857a7 Identity DI changes 2014-04-22 14:01:42 -07:00
Chris Ross c8af917927 Expose IPAddress, X509Certificate. 2014-04-22 10:00:31 -07:00
Chris Ross bfab162b4b Seperate the server layers into two projects. 2014-04-22 09:56:09 -07:00
Chris Ross a04d592d06 OWIN->K and K->OWIN support via Func<AppFunc, AppFunc>. 2014-04-21 16:26:15 -07:00
David Fowler 93aa23b6ab Removed ifdefs around RemoteIP and ClientCerts. 2014-04-19 16:40:58 -07:00
David Fowler e3afbae213 Remove the converter logic 2014-04-19 02:27:49 -07:00
ajcvickers 737afbd610 An injection of musical love... (Updating music store to use new EF configuration and DI)
Changes EF setup to use common DI container
Sets up injection of context instances
2014-04-18 13:17:08 -07:00
Chris Ross 28fbacc7f4 Remove #if NET45s for IPAddress, X509Certificate. 2014-04-18 08:51:59 -07:00
David Fowler f86877b14f Move BuilderExtensions and RouterMiddleware to Microsoft.AspNet 2014-04-18 00:22:27 -07:00
David Fowler bba57874bc Put UseServices extension method in Microsoft.AspNet 2014-04-18 00:13:10 -07:00
David Fowler d138028462 Updated due to change in API 2014-04-17 22:38:08 -07:00
David Fowler 252f17e5e2 Adjusting due to API changes 2014-04-17 22:16:04 -07:00
David Fowler 03b089abe0 Renamed Builder.ServiceProvider to Builder.ApplicationServices
- Made things consistent with HttpContext.ApplicationServices
2014-04-17 22:08:47 -07:00
David Fowler f258b008fa Fixed build break and used new pattern for using mvc 2014-04-17 21:26:23 -07:00
David Fowler 11080a5d06 Removed Properties folder 2014-04-17 20:31:11 -07:00
David Fowler 10ee3c20e3 Rename UseContainer to UseServices 2014-04-17 20:27:18 -07:00
Hao Kung 3c4a2df2cb Use DI for Identity 2014-04-17 15:36:17 -07:00
Hao Kung e61107a381 Switch to using Identity extensions 2014-04-17 14:29:25 -07:00
David Fowler c06aa04654 Update music store to handle the new changes in aspnet/WebFx#257 and aspnet/WebFx#259 2014-04-17 00:46:24 -07:00
David Fowler e99576a429 Added callback overload to UseContainer
- Allows caller to pass a delegate to configure add services via the
  ServiceCollection.
2014-04-17 00:12:41 -07:00
Ryan Nowak 06c63c38a1 Fix for #32 and #33 - return IBuilder from UseRouter
Also removing the overload that doesn't take a route collection
2014-04-16 20:01:35 -07:00
Praburaj aa7fe89c81 Using a single GetUserName() temporary extension in all places where I try to get the user name. This temporary extension will go away when we have these extensions as part of identity package. 2014-04-16 17:22:05 -07:00
Praburaj 506b439f2f Using Html.DisplayNameFor helper to generate some titles. 2014-04-16 17:12:23 -07:00
Praburaj 20d0fc9bd8 Enabling code to use Html.LabelFor and Html.Label helpers. 2014-04-16 16:53:53 -07:00
Praburaj 5c3d268327 Deleting a view page related to social login which is not in alpha scope (previously missed to remove this). 2014-04-16 14:17:16 -07:00
Chris Ross f8b1679240 Update to new project tooling. 2014-04-16 14:16:46 -07:00
Praburaj 439398b7ab Some minor cleanup:
1. Removing a couple of unused enum items which is not required for alpha
2. Cleaning up an unused namespace in Startup.cs
2014-04-16 14:16:07 -07:00
Levi Broderick 6bc6da1c7d Fix build break: inadvertently removed PBKDF2.cs and related functionality 2014-04-15 22:10:09 -07:00
GrabYourPitchforks 1959aa9e7f Merge from internal DataProtection repo. 2014-04-15 18:03:41 -07:00
Praburaj 41700cf56d Changes with this checkin:
adding a work around to test the account/manage user feature. With this I can verify password changes work fine.
2014-04-15 17:19:58 -07:00
Praburaj 348d4a11de Html.ActionLink WebFx bug# 246 is fixed now. Enabling the code to use the helper. 2014-04-15 16:49:46 -07:00
Praburaj 843c952928 Removing some more view pages related to the external login. Also fixed the corresponding views
that were trying to render them.
2014-04-15 16:42:13 -07:00
Hao Kung d4c0e7dd90 Remove set password logic not needed for alpha 2014-04-15 12:23:21 -07:00
Praburaj 7fd711df54 Html.ActionLink generating an incorrect url when trying to generate a link to a different controller + action.
Adding a work around with information of a corresponding bug. The work around will go away once we have a fix.
2014-04-15 12:11:05 -07:00
Praburaj 69dae2d216 Enabling code to use RedirectToAction helpers. 2014-04-15 11:45:17 -07:00
Chris Ross f12117fe1f Remove temp IAppBuilder support. 2014-04-15 11:28:42 -07:00
Hao Kung 70b45dbe2d AccountController identity cleanup
Use SignInManager where appropriate
Misc cleanup of controller actions
2014-04-15 11:03:18 -07:00
Praburaj 46da4ba9e4 Changes with this checkin:
Removing all code related to External login from Account controller.
I also added a little ugly work around to initiate a static UserManager for testing purpose. This should go away shortly.
With this change user can register a user, login & logout.
2014-04-14 18:20:57 -07:00
Praburaj f95588f0dd Enabling code to do drop down lists in music store. 2014-04-14 17:26:39 -07:00
Praburaj 24293783f5 Using ViewBag in a view component instead of ViewData. 2014-04-14 15:08:54 -07:00
Praburaj eeb9326101 Having a layout page in a ViewComponent was the reason for StackOverFlow exception. Removing that fixed the problem.
Using ViewData instead of ViewBag in a ViewComponent.
Copying over some of the icons from the original music store required for this view component.
2014-04-14 14:13:30 -07:00
Praburaj 9127f5b930 A few changes with this checkin
1. Adding cookies middleware to the music store app
2. Enabling login, register & related management pages to render some UI for testing
3. Updated the LKG.json
2014-04-14 12:35:56 -07:00
Pranav K c31e0f295f Removing unused Owin packages that are causing build failure
* Adding Microsoft.AspNet.AppBuildSupport.Tests to sln
2014-04-12 13:57:49 -07:00
Praburaj b37c811266 CR feedback
1. Creating a separate file for AssemblyNeutralInterface.
2. Removing the user name and password settings from web.config.
2014-04-11 16:36:28 -07:00
Praburaj 1b62b248e4 Some of the identity classes changed name. Fixing the same in Music store to fix a build break. 2014-04-11 16:35:04 -07:00
Chris Ross 165effebde Abstractions: Pull in k10 dependency for IdnMapping. 2014-04-11 10:52:45 -07:00
Praburaj aaae435cc3 Adding a [HttpGet] attribute to enable the Delete album from the store functionality.
This action corresponds to a confirmation page to delete the item.
2014-04-10 17:22:55 -07:00
Praburaj bb241c1a79 Uncommenting code to include ActionName attribute. 2014-04-10 14:23:02 -07:00
Praburaj 1e137c7af9 Getting the application base path from the IoC container. 2014-04-10 14:15:29 -07:00
Praburaj b51f54e98a Adding a view component for cart summary
1. Added a View component named CartSummary
2. Moved the CartSummary.cshtml as default.cshtml to shared\Components
2014-04-10 13:46:58 -07:00
rowanmiller 58d4b48690 Swap database creation to use EF
Swapping database creation to use native support added to EF.
Also swapping to async methods for database initialization.
2014-04-10 09:28:10 -07:00
David Fowler 0bda88145d Removed declared ANIs and referenced Microsoft.Net.Runtime.Interfaces instead 2014-04-09 22:14:59 -07:00
David Fowler e3c64aeb55 Updated to use the new tooling 2014-04-09 22:08:21 -07:00
Javier Calvarro Nelson 89e532873e Bumped the version of System.Threading.Tasks to 4.0.10.0 to fix the build break in the remaining project.json 2014-04-09 14:05:01 -07:00
Javier Calvarro Nelson 8ca4a331e2 Created an in memory host for testing purposes and added the appropriate
APIs to allow sending requests through the pipeline easily.
2014-04-09 12:58:58 -07:00
Praburaj 0f25f9ff6b Html.ActionLink helper available.
Enabling music store code to use the Html.ActionLink helper.
2014-04-09 12:04:53 -07:00
Praburaj 8610e016b3 Setting the full path to load the Config.json.
Specifying just the name of the file works fine on selfhost or IISExpress. When app is hosted in IIS, Config.json is being searched in the w3wp3.exe's folder path resulting in an exception.
So fixing the path of Config.json by retrieving the application base path from AppDomain.
2014-04-09 10:43:52 -07:00
Praburaj f4cee29842 Html.BeginForm works now on Partial views.
So uncommenting some code which uses this in music store app.
2014-04-08 16:45:49 -07:00
Praburaj ccc257f8fc Adding environment based config to the music store project with a Config.json file for local.
If the same set of values (those present in config.json) is present in the environment variables
then ones from environment variables be picked up. This will be the antares scenario where the portal variables
flow in as environment variables with a specific prefix.
2014-04-08 14:21:19 -07:00
Praburaj c0250392b2 Enabling @RenderSection in the Music store code. 2014-04-08 12:48:12 -07:00
Praburaj 0db736b056 Uncommenting code to use [HttpPost] verb attribute. 2014-04-08 12:25:42 -07:00
Praburaj 3d54a24244 Removing the rendering package from music store app to fix a build error. Rendering and Core are merged now. 2014-04-08 10:42:10 -07:00
David Fowler a8a47a0489 Removed all assembly infos. 2014-04-08 09:25:29 -07:00
David Fowler f5f225e6ea Updated to use new tooling 2014-04-08 02:11:05 -07:00
David Fowler 7a976d069e Updated to use new tooling 2014-04-08 02:00:50 -07:00
David Fowler 26fedbb999 Updated tooling 2014-04-08 01:42:21 -07:00
David Fowler 23c11bc950 Updated to use the new tooling 2014-04-08 01:37:06 -07:00
David Fowler 7e7c940c63 Updated to use the new tooling 2014-04-08 01:10:29 -07:00
Praburaj 45e6e71bc8 Making a few more changes including:
1. Adding a view component
2. Adding more partial views from the sample and enabled a few of them.
3. Updating Account controller to accomodate all the recent identity changes.
4. Enabling some available Url helpers like Url.Content
5. Adding a ~ to all the scripts and images as this bug is fixed now.
2014-04-04 17:19:27 -07:00
Pranav K f4904e1803 Fixing PathString.Add(PathString) to handle trailing slashes correctly
Fixes #31
2014-04-03 12:55:45 -07:00
Praburaj 4709bca281 A few changes with this checkin:
1. Removing copyright text from all files per a code review feedback
2. Adding a cookie based session to the application to retrieve the cart Id.
3. Enabled the Accounts controller as we now have the necessary Http abstractions for User, SignIn, SignOut etc.
4. Changing self hosting scripts to run on coreclr by default.
5. Enabling the layout page on all required views.
6. Adding a favico.ico
7. Renaming the Cart property in the EF context to CartItems as it returns a CartItems list.
8. Uncommenting some code which was previously accessing unavailable APIs. They are available now (but yet to validate them).
2014-04-02 18:40:25 -07:00
sornaks 9f3433acec WebFX 156 - Introducing RedirectPermanent.
Merging RedirectPermanent to Redirect.
2014-04-02 15:24:20 -07:00
Chris Ross ee37c75544 Rename Auth Context API Ack to Accept 2014-04-01 17:08:09 -07:00
Chris Ross dfc0c5d323 Change GetAuthType to use a context object instead of a delegate. 2014-04-01 16:29:47 -07:00
Chris Ross c638c74bc9 Move AuthManager methods to Context and Response. 2014-04-01 16:03:54 -07:00
Chris Ross 60f09fbc93 Make lower level public API. Layering. 2014-03-31 12:47:28 -07:00
Ryan Nowak 87a47f50cc Passing more data to on GetVirtualPath
For link generation to areas, we need to provide the set of values that
the route could potentially provide.

Basically if we know what action we want to reach, we want to know whether
or not a given route could hit that action before giving it the OK to
generate a link.

For instance a route like '{controller}' couldn't hit an action like
'HomeController:DoACoolThing', since it can never provide a value for
'action'. This makes it possible for WebFX to make the right decision
without changing the behavior of any of the routing constructs. This also
has the side-effect of removing a class of order dependencies in routing
that cause bad links to be generated.
2014-03-31 12:05:47 -07:00
Chris Ross 63dc9ad719 Auth: Remove GetAuthType predicate overload. 2014-03-31 12:00:55 -07:00
Chris Ross 60d892b529 Revert new project dependnecy. 2014-03-31 11:28:27 -07:00
Chris Ross 097138e813 Auth: Validate acks. 2014-03-31 11:12:22 -07:00
Chris Ross 4347ddfd0f Security contracts. 2014-03-31 11:12:20 -07:00
rowanmiller dabb68cc6d Fix EF InvalidOperationException on Startup
The code that does an 'UPSERT' of seed data on app start was querying
existing instances and attaching as modified of seed instances on the
same context. Now that we track query results this will throw because
the context has two instances of the same entity (same key value).

Swapping to use a temporary context to query existing data.
2014-03-31 10:45:41 -07:00
Yishai Galatzer cd0528b1b2 Link generation related tests 2014-03-31 09:31:49 -07:00
Yishai Galatzer 77ef7a5cde RouteConstraints Step II + III
Include Url Generation support
Add unit tests
Clean issues found by unit tests
2014-03-31 09:31:48 -07:00
David Fowler 351964878f Updated task package 2014-03-29 03:19:45 -07:00
David Fowler 2b87a625d9 Updated clr packages 2014-03-29 01:15:28 -07:00
Chris Ross af1a97cd7c WebListener: Normalize request read validation. 0 size is invalid. Return 0 if closed. 2014-03-28 11:03:09 -07:00
Pranav K 3fa5f9ca47 Updating CoreCLR package versions 2014-03-28 06:32:26 -07:00
Pranav K eaddb29577 Updating CoreCLR package versions 2014-03-28 06:03:23 -07:00
Pranav K e019e67325 Updating CoreCLR package versions 2014-03-28 05:53:01 -07:00
David Fowler 36a2524780 Updated CLR dependencies 2014-03-28 00:23:16 -07:00
David Fowler a42fcb72b3 Update to new version of Tasks 2014-03-28 00:04:30 -07:00
Pranav K b366cb1cd0 Updating CoreCLR package versions 2014-03-27 18:30:24 -07:00
Pranav K 6ff5ebafd2 Updating CoreCLR package versions 2014-03-27 17:30:36 -07:00
Praburaj 2a19ec7b2a Simplifying the options to the error page middleware. 2014-03-27 16:23:58 -07:00
Praburaj 4fc1857994 Fixing a code review comment to change the app name from "BugTracker" to "MusicStore" 2014-03-27 16:20:25 -07:00
Praburaj 5eacb62b62 A few changes with this checkin:
1. Adding scripts to self host & custom host Music store
2. Updating readme
3. Cleanup some helper classes that are not necessary.
4. Adding error page middleware for diagnostics.
5. Flipping the switch to run helios on "K" by default.
2014-03-27 16:10:16 -07:00
Yishai Galatzer db7b36a859 Fix merge errors 2014-03-27 11:01:04 -07:00
Yishai Galatzer 70e26a80ad CR Feedback 2014-03-27 10:58:15 -07:00
Yishai Galatzer a917cbd577 Constraints 2014-03-27 10:58:14 -07:00
Ryan Nowak cf16d6cba7 Small refactor of TemplateBinder
We'll need to access the accepted values to do proper link generation, so
separating this process out into 2 parts.

Also moving defaults into the TemplateBinder because they are conceptually
part of the route, not part of the request. I'll do the same for
TemplateMatcher soon, but it's a big change and worth separating.
2014-03-26 18:44:57 -07:00
rowanmiller fe9770cc80 Use OnModelCreating & OnConfiguring (plus some other cleanup)
Swapping context to use OnModelCreating & OnConfiguring now that models
are cached
Adding some [Required] annotations to properties that are really
required in the domain model
Renaming Cart => CartItem because that's what it really is :)
Allowing database to hold some null data now that we can materialize it
(although we can't save it yet)
2014-03-25 16:01:01 -07:00
rowanmiller 965046813e Swapping data access to use EF
Enabling data access against new EF stack.
Uses SQL Server when running on Net45 and an in-memory database for K10
(because SQL Client isn't available on K10 yet).
Various workarounds in place to compensate for missing features in EF
(all marked with "// TODO [EF]..."
2014-03-25 12:50:36 -07:00
Praburaj 5497541e08 Updating the music store application with the latest code.
Changes include
(1) Inclusion of all views (with non compiling code commented out)
(2) Inclusion of all models with data annotations
(3) images & setting up of static files
(4) MVC application setup and scripts to run the application
(5) Scripts to clean up the temporary files and capture LKG build.
2014-03-24 15:15:43 -07:00
Chris Ross 546af5ddee Rename Prefix to UrlPrefix. Seperate IServerInformation to its own implementation. 2014-03-24 11:34:07 -07:00
Chris Ross eb27892470 Code review cleanup. 2014-03-24 11:34:04 -07:00
Chris Ross 9e8032cc8a Update IServerFactory, ILoggerFactory. 2014-03-24 11:34:02 -07:00
David Fowler b374c1b7e3 Updated dependencies to account for new changes to do with safe handles. 2014-03-24 08:33:00 -07:00
Ryan Nowak 2207acb917 Incorporate breaking change from DI 2014-03-21 17:53:18 -07:00
Chris Ross 9a4678d40f Change config order. 2014-03-20 21:14:22 -07:00
Chris Ross 982cf2a1d6 Code review cleanup. 2014-03-20 21:14:20 -07:00
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 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