Commit Graph

17991 Commits

Author SHA1 Message Date
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
Pranav K 3d6740bc8a Update namespace generation in RazorCompilationService to use root
relative paths.
2014-02-07 13:55:59 -08:00
Chris Ross ad3112917b Update Microsoft.Owin dependencies to Microsoft.AspNet. 2014-02-07 11:29:22 -08:00
Pranav K cfc6b9ecdd Fixing compilation failure due to change in namespace in Microsoft.AspNet.FileSystem 2014-02-06 16:48:06 -08:00
Pranav K 591e21eea9 Moving MvcService and MvcHandler to a separate assembly
Tenatively named Microsoft.AspNet.Mvc.Startup, the assembly will act as an
entry point into the Mvc handler \ middleware.
2014-02-06 16:21:14 -08:00
Chris Ross 86b1ac8f39 Initial static files port. 2014-02-06 15:30:21 -08:00
Pranav K 79d615f41f * Moving sln file to root of repository
* Updating build.cmd to the latest from Universe\build_templates
* Updating sln to include k10 \ net45 solution folders
2014-02-06 14:46:31 -08:00
Hao Kung b717e6607a Add DI as depedency for identity 2014-02-06 12:22:58 -08:00
Pranav K b51fd08bab Update ViewDataOfT.SetModel to check for type compatibility when setting
model instance.
2014-02-05 14:33:11 -08:00
Pranav K 6c8485b1ef Removing VirtualFileSystem from Razor
* Paths rooted by a leading slash (e.g. /foo) are correctly resolved by the
PhysicalFileSystem. This change is an experiment to determine if we can
get away with not having virtual paths in WebFx.

* Additionally removing types (MetadataVirtualPathViewFactory,
 VirtualPathAttribute) that are currently unused.
2014-02-04 22:08:27 -08:00
N. Taylor Mullen bc3d32ec74 Modify base Visitor class to be more generic.
This involved adding more boiler plate to the base of the visitor classes such as a Writer and a Context.  By following this contract for new visitors we'll ensure that visitors have enough information to add new features to Razor.
2014-02-04 14:56:00 -08:00
N. Taylor Mullen a9d4cd9089 Remove Snippet dependency
No need to have a snippet class when we only ever use the value of a snippet and only ever have one.
2014-02-04 14:53:52 -08:00
Yishai Galatzer 9365004248 Remove derivation based extensibility points. 2014-02-04 13:54:22 -08:00
Yishai Galatzer 764e5f890d Use Json result constructor only from the Action result helper.
Names to be changed, as they don't make much sense at the moment. Keeping them the same for diffing purposes
2014-02-04 13:54:22 -08:00
Yishai Galatzer 2a3f891878 Customizing Json from helper
Add Json to Helper
Guarantee SerializerSettings
2014-02-04 13:54:20 -08:00
Yishai Galatzer 4b4034788c Initial support for JsonResult + Action result mutation from object to Json 2014-02-04 13:54:19 -08:00
Ryan Nowak 0eb5ff0b87 integrating abstractions with routing 2014-02-04 12:39:19 -08:00
N. Taylor Mullen 57e0ef4774 Revert changes to CSharpDesignTimeHelpersVisitor.
Without the initial code tree acceptance you end up stack overflowing.  Also removed a validation check that ensures that there's always a base type (not true).
2014-02-04 11:59:50 -08:00
Pranav K c91a814ffa Changes to get the sample running again 2014-02-03 21:05:54 -08:00
Pranav K 57854b2cc0 Refactoring CSharpCodeWriter
* Using CodeGeneratorContext to pass around metadata.
* Tweaks in CSharpCodeWriter to use the right type name
* Adding a sample unit test
2014-02-03 17:04:09 -08:00
Ryan Nowak c796188231 integrating abstractions with routing 2014-02-03 15:56:44 -08:00
Pranav K 68bb44d73e Updating Resx designer file to minimize conflicts after resx change 2014-02-03 13:33:00 -08:00
David Fowler e10699474b Moved Action results to the right folder 2014-02-01 12:37:40 -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
Hao Kung 7e121a9ccd Initial identity repo 2014-01-31 13:38:15 -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
Pranav K 1634c74ff4 Remove and sort usings across the solution 2014-01-31 10:24:07 -08:00
Pranav K cc414e0fef * Renaming Mvc.Forms to Mvc.Rendering
* Moving data types to Mvc.ModelBinding
2014-01-30 16:45:40 -08:00
N. Taylor Mullen 7f0878c1b8 Comment ifdefs and fix K10 functionality 2014-01-30 15:50:20 -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
Pranav K 6c9d562fc3 * Using RazorView<dynamic> as base type until we get model support
* Modifying ViewData to share inner dictionary until we figure out how to
  pass it correctly
* Removing unused NuGet.config
2014-01-30 07:26:46 -08:00
Pranav K 9f80b7d1c8 Relocation resx file to root so that it's correctly embedded 2014-01-29 22:23:45 -08:00
Pranav K a6393e77ab Moving MvcRazorHost to a separate assembly 2014-01-29 15:20:48 -08:00
Pranav K cb8a32e5a6 Updating the view engine to use Microsoft.AspNet.Razor package 2014-01-29 10:08:46 -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
N. Taylor Mullen 73dae5fcaa Added an output validator to make a best-effort attempt at validating old and new codeDOM/codeTree output. 2014-01-28 17:05:48 -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
David Fowler b1ff6d32d3 Fixed up resources. 2014-01-27 21:30:53 -08:00
N. Taylor Mullen 3a214ab213 ifdef all of the razor bits that are reliant on non-coreclr bits.
Big thing we're missing is Char.GetUnicodeCategory(...) and Thread.Yield.  Tried to do my best to fill in the blanks.  Ripped out VB.
2014-01-27 18:52:02 -08:00
N. Taylor Mullen 521a5c8517 Start to add a CodeTree codegen.
This addition will eventually replace CodeDOM to allow for the k10 project to build.  It is a new type of codegeneration method that is highly extensible.
2014-01-27 16:46:17 -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 ea97108e76 Swallow errors while trying to load types. 2014-01-26 03:38:24 -08:00
David Fowler 8415b190b1 Fixed how initialize is called. 2014-01-26 00:54:14 -08:00
Pranav K afa22994bf Fixing project.json schemas 2014-01-25 23:57:22 -08:00
David Fowler f36aa5ba3c Fixed up project.json to be more specific. 2014-01-25 22:16:30 -08:00
David Fowler c1321773a7 Removed csproj files. 2014-01-25 17:24:15 -08:00
David Fowler 430217e2de Remove csproj files. 2014-01-25 17:21:50 -08:00
David Fowler 127b6886c4 Removed the generated csprojes 2014-01-25 17:16:00 -08:00
David Fowler 328d43a638 Updated the sample to use the owin http abstractions glue. 2014-01-25 16:44:35 -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 1d27b4e2e4 Remove packages.config 2014-01-25 15:16:24 -08:00
David Fowler be66f594af Updated project files. 2014-01-25 02:27:44 -08:00
David Fowler 242ea9a319 Updated the build. 2014-01-25 02:19:01 -08:00
David Fowler a0de7048b5 Ifdef to make stuff compile on both platforms. 2014-01-24 02:20:46 -08:00
David Fowler b0933fdd35 Updated the build and removed older projects. 2014-01-24 02:02:47 -08:00
David Fowler b54a0da6e8 Updated MVC.
- Use new HttpAbstractions
- Updated the build
- Added new projects
2014-01-24 01:55:17 -08:00
David Fowler 854cb87b42 Updated version 2014-01-24 01:21:42 -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
David Fowler 77dd7e40eb Updated build. 2014-01-23 23:12:34 -08:00
Louis DeJardin 27ff7762e9 Updating with work in progress 2014-01-23 14:53:22 -08:00
David Fowler fb35288326 Removed core services. 2014-01-22 19:35:13 -08:00
David Fowler 477cf79e58 Removed unneeded dependencies and updated owin bits. 2014-01-22 19:03:56 -08:00
Pranav K 7adb658a38 Moving compilation to Microsoft.AspNet.Mvc.Razor 2014-01-22 15:12:28 -08:00
Pranav K df5a6d30d6 * Migrating HtmlHelper stub
* Updating project json files to new format
2014-01-22 12:27:24 -08:00
Pranav K 69a99e5c41 Moving View overloads to Controller base type 2014-01-22 10:59:32 -08:00
David Fowler 084d6e3544 Added initial build. 2014-01-21 20:17:07 -08:00
Pranav K 7b8a54cc24 * Updating project structure to use the src, test, build, samples format
* Adding build scripts to use K compilation.
2014-01-21 16:15:44 -08:00
N. Taylor Mullen af14969b54 Added tests project. 2014-01-18 14:18:55 -08:00
N. Taylor Mullen 72e37d7ac6 Update code to be the latest bits. 2014-01-17 15:43:57 -08:00
David Fowler 50179ad99b Removed uneeded dependencies. 2014-01-11 23:06:03 -08:00
David Fowler ff854e3e15 Initial commit. 2014-01-11 20:12:30 -08:00
Louis DeJardin bdf69b0d0c Initial commit 2013-12-19 11:38:05 -08:00