Wei Wang
4d302eea1a
Merge branch 'sort-dependencies' into dev
2014-05-08 11:19:19 -07:00
Wei Wang
dc8b5010a0
Merge branch 'sort-dependencies' into dev
...
Conflicts:
src/Microsoft.AspNet.Mvc.Core/project.json
src/Microsoft.AspNet.Mvc.Razor.Host/project.json
src/Microsoft.AspNet.Mvc.Razor/project.json
2014-05-08 11:16:25 -07:00
Wei Wang
bc9cc68bf0
Fix position of brace
2014-05-08 10:50:10 -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
David Fowler
3b31df3d29
React to renames
2014-05-08 03:24:18 -07:00
David Fowler
6fb34c6ab7
React to renames
2014-05-08 03:06:18 -07:00
David Fowler
c94cfc5b0e
Updated to use the new Roslyn.
2014-05-07 22:53:45 -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
7b2feab670
Sort dependencies and remove duplicates in dependencies
2014-05-07 18:24:04 -07:00
Wei Wang
a2b1dbdaa4
Sort dependencies and remove duplicates in dependencies
2014-05-07 18:10:40 -07:00
Wei Wang
f8f3e34986
Sort dependencies and remove duplicates in dependencies
2014-05-07 18:04:18 -07:00
Wei Wang
96568362ea
Sort dependencies and remove duplicates in dependencies
2014-05-07 17:47:44 -07:00
Wei Wang
990481e48e
Merge branch 'sort-dependencies' into dev
2014-05-07 17:44:02 -07:00
DamianEdwards
d4efedeb17
Added new SPA port of original Music Store app
2014-05-07 17:44:01 -07:00
Pranav K
4566947e33
Change ModelState.IsValid back to bool
2014-05-07 17:41:47 -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
Hao Kung
ace88b21be
Add support for UserClaims
2014-05-07 17:29:06 -07:00
Wei Wang
c2700b495d
Sort dependencies and remove duplicates in dependencies
2014-05-07 17:13:31 -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
Ryan Nowak
b2c9b3b5d3
Unblocking the CI
...
DataAnnotations used to reference System.Reflection.Compatibility, which
was giving us a reference to some methods "for free". Really we should
have been pulling in this package all along.
2014-05-07 15:58:24 -07:00
Hao Kung
71750d668b
Add support for reading options from config
2014-05-07 15:36:02 -07:00
Glenn Condron
4d78121aa4
Wrap HttpContext in an ObjectHandle to avoid cross domain issues
2014-05-07 15:11:50 -07:00
Hao Kung
bfbd8892a1
SignInManager now checks lockout support
2014-05-07 15:02:30 -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
lajones
235707ec8a
Microsoft.ComponentModel.DataAnnotations is being renamed to Microsoft.DataAnnotations
2014-05-07 13:35:36 -07:00
sornaks
3b7983181d
WebFX 98 - Adding GetValidationAttributes support
2014-05-07 12:52:48 -07:00
Hao Kung
6ca38a31c0
Sql Store
2014-05-07 12:48:56 -07:00
ajcvickers
4120269fb5
Updating for SqlServerConnectionString => UseSqlServer change
2014-05-07 10:27:59 -07:00
ajcvickers
078ba45477
Updating for SqlServerConnectionString => UseSqlServer change
2014-05-07 10:27:51 -07:00
harshgMSFT
bbafa0a29a
Tests for AntiForgery System.
2014-05-07 10:27:01 -07:00
harshgMSFT
b444f66689
Adding ValidateAntiForgeryTokenAttribute also fixing a bug in token deserialization.
2014-05-07 10:01:06 -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
Pranav K
904c91d2b9
CompositeModelBinder should only validate the object graph at the top
...
level.
DataAnnotationsModelValidator should prefer the container to Metadata.Model
Fixes #247
2014-05-06 17:39:50 -07:00
Chris Ross
18d3395a5e
Rename ServiceCollectionExtension class.
2014-05-06 16:21:17 -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
Pranav K
076dedcca5
Reacting to package and namespace changes
2014-05-06 14:06:29 -07:00
Hao Kung
2a6a24097c
Merge fixes
...
Conflicts:
src/Microsoft.AspNet.Identity/IdentityOptionsSetup.cs
test/Microsoft.AspNet.Identity.Test/IdentityOptionsTest.cs
2014-05-06 14:05:12 -07:00
Hao Kung
de2b0a5fbd
Fix merge conflicts
2014-05-06 13:58:51 -07:00
Hao Kung
661a3a3c3e
Implement Config options
2014-05-06 13:16:22 -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
Wei Wang
99e86d2aa1
Fix ordering of usings and dependencies after namespace renaming
2014-05-06 12:39:34 -07:00
Wei Wang
08929a6e99
Fix dependency issues
2014-05-06 12:16:15 -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
Wei Wang
ca67e93bc7
Fix dependency issues
2014-05-06 11:22:59 -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
harshgMSFT
9b79664e2f
Fixing Build break due to namespace move.
2014-05-06 10:04:58 -07:00
David Fowler
0c8cbdab31
React to renames + cleanup
2014-05-06 03:37:06 -07:00
David Fowler
d916a6d66a
React to renames
2014-05-06 01:04:17 -07:00
Chris Ross
1235ea1a6f
Fix HttpAbstractions dependency renames.
2014-05-06 00:59:16 -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
73f1c6ac46
Update dependency namespace
2014-05-05 20:24:37 -07:00
Wei Wang
34b4c7e3a7
Remove unused dependency
2014-05-05 20:15:50 -07:00
Wei Wang
bc93ff9aec
Update dependency namespace
2014-05-05 20:08:02 -07:00
Wei Wang
4210211c79
Update dependency namespace
2014-05-05 20:01:04 -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
c44d56a182
* Fixing unit test broken by HttpAbstractions rename
...
* Adding stuff that kproj auto-added
2014-05-05 18:14:47 -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
Ryan Nowak
abbaa11212
Incorporate name changes: HttpAbstractions
2014-05-05 17:14:08 -07:00
Praburaj
c638a77ec9
Updating the MusicStore to use tooling.
2014-05-05 17:02:33 -07:00
Sebastien Ros
14205d1708
Applying IHttpAuthenticationFeature renaming
2014-05-05 17:01:57 -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
Ryan Nowak
4ece9969bf
HttpAbstractions
2014-05-05 16:29:14 -07:00
Chris Ross
3141543f04
Fix HttpAbstractions dependency renames.
2014-05-05 16:26:26 -07:00
Sebastien Ros
6f16dabf08
Renaming Microsoft.AspNet.Security namespace
2014-05-05 16:13:54 -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
Brice Lambson
b5039012bf
Correctly react to EF package renames
2014-05-05 16:03:16 -07:00
Ryan Nowak
28fee3470f
Controller base class now implements IActionFilter
2014-05-05 15:47:16 -07:00
Ryan Nowak
ae4e3bc61d
Adding controller-as-filter support
...
If the controller implements IFilter, it will be added to the filters
collection.
It's hardcoded to be 'first' as it was in MVC.
2014-05-05 15:43:29 -07:00
Hao Kung
ab84228c37
Implement Config options
2014-05-05 15:39:34 -07:00
Sebastien Ros
05b091ee66
Removing Authorization namespace
2014-05-05 15:37:36 -07:00
Chris Ross
7fd80850ee
Rename all feature interfaces to I*Feature.
2014-05-05 14:33:41 -07:00
Sebastien Ros
b7ed0faa33
Adding AuthorizationPolicy and mutable user claims
...
#13
2014-05-05 14:29:13 -07:00
dougbu
67b33868a3
Add `ListBox()` and `ListBoxFor()` helper methods
...
- copy from legacy MVC
- get `ListBox[For]()` methods in correct places and working
- also usual stuff: `var`, `[NotNull]`, remove `IDictionary<,>` overloads
- `ListBoxHelper()` -> `GenerateListBox`
- already had all the bits needed in `GenerateSelect()`
- special-case `null` or empty `name` in GenerateSelect()
- ensure `ArgumentException` has correct parameter name
- lower-level problem affected `CheckBox()` as well
- use `ListBox()` and `ListBoxFor()` in MVC sample
- use `ListBox()` in an editor template
2014-05-05 14:26:06 -07:00
Brice Lambson
6ae622609e
React to EF package renames
...
This is part of aspnet/Data#132
2014-05-05 14:25:44 -07:00
Ryan Nowak
7a8dc36553
Adding controller-as-filter support
...
If the controller implements IFilter, it will be added to the filters
collection.
It's hardcoded to be 'first' as it was in MVC, but can be overridden by
implementing IOrderedFilter.
2014-05-05 14:03:01 -07:00
ajcvickers
bb427ee393
Reacting to EF class renaming.
2014-05-05 13:43:44 -07:00
ajcvickers
b623f725ba
Changes to reflect API renaming in EF.
2014-05-05 13:39:06 -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
a9a7663cbd
Update MVC for reflection package changes
2014-05-05 10:38:07 -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
Louis DeJardin
bbcac43aaa
Updating DataAnnotations version reference
2014-05-02 20:53:12 -07:00
Ryan Nowak
9c75813c9a
Add reference to claims
...
(cherry picked from commit e1154c7dbfcf6bc91ff266da08b67cbb32b270a8)
2014-05-02 18:46:02 -07:00
Hao Kung
31f76b8d58
Initial DI changes from app building
...
Incorporate feedback and make identity DI friendly everywhere
Also start using the new OptionsSetup
2014-05-02 17:09:24 -07:00
N. Taylor Mullen
6dc6ba6d37
Add User helper to controllers and views.
...
#277
2014-05-02 14:48:21 -07:00
dougbu
31cdc09647
Move Microsoft.AspNet.RequestContainer dependency from MVC sample to MVC
...
- 🐛 fix; fixes #346
2014-05-02 14:29:19 -07:00
Hao Kung
1faa6f018b
Switch to use IServiceCollection
2014-05-02 12:22:49 -07:00
N. Taylor Mullen
4494f40d67
Addressed code review comments.
2014-05-02 12:16:28 -07:00
N. Taylor Mullen
3e398be1f8
Require cshtml ending for full path view names.
...
If a view represents a full path and does not end in .cshtml the FindView and FindPartialView methods will throw.
#206
2014-05-02 12:16:24 -07:00
Ryan Nowak
f5b3ae4a3b
Renaming Exception Filter methods
...
These were accidentally the same names as the action filter methods.
Oopsies. Name taken from MVC and appended Async for the async version
because that's how we roll.
2014-05-01 23:14:47 -07:00
anpete
35fcc7a579
Update file headers
2014-05-01 17:43:17 -07:00
anpete
71acc74899
Merge branch 'dev' of github.com:aspnet/WebFx into dev
2014-05-01 17:42:48 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -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
6c9899b586
Merge branch 'dev' of github.com:aspnet/Razor into dev
2014-05-01 17:41:03 -07:00
anpete
6c2130239f
Update file headers
2014-05-01 17:40:52 -07:00
anpete
b53a5e4b75
Update file headers
2014-05-01 17:39:44 -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
N. Taylor Mullen
af18392815
Re-updated System.IO.FileSystem version.
2014-05-01 17:11:23 -07:00
N. Taylor Mullen
c4f034e8ad
Re-updated version to System.IO.FileSystem.
2014-05-01 17:10:57 -07:00
N. Taylor Mullen
039c304d25
Upgrade FileSystem dependency.
2014-05-01 17:01:58 -07:00
N. Taylor Mullen
40bb9d0421
Update FileSystem package version.
2014-05-01 17:01:13 -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
Yishai Galatzer
fe8ded0ce6
Fix dev14 crash + temporary? .gitignore
2014-05-01 15:10:48 -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
3a5ad14fe0
Remove unused filesystem dependencies.
2014-05-01 12:46:10 -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
Ryan Nowak
81611f13da
TEMPORARILY turning off warnings as errors to unblock the CI
2014-04-30 21:55:17 -07:00
Ryan Nowak
93897b6055
Fixing a resources file that needs to be regenerated
2014-04-30 19:26:36 -07:00
harshgMSFT
3765abdfca
Adding Support for LinkGeneration for named Routes.
...
- Adding HtmlHelpers for route link generation.
- Controller Helpers
- UrlHelper and UrlHelperExtensions
2014-04-30 18:34:46 -07:00
harshgMSFT
ab323ac8df
Updating Startup.cs to incorporate use route name.
2014-04-30 16:50:35 -07:00
harshgMSFT
4541295872
Updating BuilderExtensions to use the new 'Named' MapRoute overload.
2014-04-30 15:44:11 -07:00
Chris Ross
61924dd73e
Fix renamed IContextAccessor APIs.
2014-04-30 15:43:21 -07:00
Ryan Nowak
8ae1865740
Fix for part of #339
...
Treat actions with a dynamic constraint or httpmethod constraint as
'better' than those with just route constraints.
This is the first criteria used to filter down the 'best' match, so it's
applied before parameter-arity.
2014-04-30 13:25:48 -07:00
Ryan Nowak
20c8dece7b
Adding IFilterFactory
...
This is a generalized factory/provider for filters - TypeFilterAttribute
and ServiceFilterAttribute are now implemented in terms of this interface.
2014-04-30 13:18:10 -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
sornaks
185ad31491
Adding an appropriate sample to use ValidationMessage and ValidationMessageFor.
2014-04-30 11:07:02 -07:00
sornaks
f17d444b8a
Porting the ValidationMessage changes to suit WebFX requirements.
2014-04-30 10:55:45 -07:00
sornaks
458c389aae
Port of changes for ValidationMessage from MVC.
2014-04-30 10:55:43 -07:00
sornaks
d63d998e95
Introducing DisplayText, DisplayTextFor, Id, IdFor, IdForModel.
...
Fixing CachedDataAnnotationsModelMetadata to support NullDisplayText.
2014-04-30 10:23:25 -07:00
sornaks
112a5ddc50
Changes enabling TextArea, TextAreaFor.
...
Changing the interface to directly include Rows and Columns.
2014-04-30 09:42:07 -07:00
sornaks
b899cac4c8
Porting TextAreaHelper from existing MVC code.
2014-04-30 09:35:48 -07:00
sornaks
e0592d01af
Cleaning up sprinkled null checks and adding it to a centralized place - FromStringExpression
2014-04-30 09:29:30 -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
David Fowler
488ec2f52e
Added default routes overload
2014-04-29 18:00:49 -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
Ryan Nowak
2ad1cca549
Issue #312 - TypeFilterAttribute (with sample).
...
Implmentation for understanding and consuming ITypeFilter was already
there.
2014-04-29 14:18:39 -07:00
Ryan Nowak
fe6f023948
Auto-update to project file
2014-04-29 14:17:11 -07:00
Yishai Galatzer
bcd0974823
Make the controller available to filters + Sample
...
GitHub WebFX #300
2014-04-29 10:33:21 -07:00
ajcvickers
30dac08fe8
It's DbDatabase! (Updating for changes to database creation APIs)
2014-04-29 10:27:03 -07:00
Yishai Galatzer
297bb5d36d
Layout compilation error not showing in browser - GitHub WebFX #286
...
An exception thrown in a layout (or for that matter anything that is a rendering time exception)
is not bubbling to the end user.
The reason is that the StreamWrite is flushing because it's in a dispose pattern.
The solution is to wrap the stream and prevent writes/flushes if an exception has been thrown.
At the same time we stop writing BOM out to html files by default.
Also specified charset explicitly - so there is matches the encoding of the page.
2014-04-29 10:26:22 -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
dougbu
f7704ba68f
Implement `Editor*()` HTML helpers
...
- copy over legacy `Editor*()` extensions and default editor templates
- get working in the new world
- usual `var`, `String` -> `string`, `internal` -> `public`, namespaces, ...
- longest overloads into `IHtmlHelper[<TModel>]` and implementation classes
- clean up `ViewContext.ViewData` -> `ViewData`, trailing whitespace, long lines
- remove `MultilineTextTemplate()` since `TextArea()` doesn't exist yet
- remove `ColorInputTemplate()` since `Color` type doesn't exist
- use `html.Label()`, not `LabelExtensions.LabelHelper()`: equivalent helper
is protected. only downside is potential `ModelMetadata` re-discovery.
- rename `HtmlInputTemplateHelper()` -> `GenerateTextBox()`
- copy over `Html5DateRenderingMode` and `html.Html5DateRenderingMode` property
- and get them working in new world
- hook the default editor templates up
- use `Editor()`, `EditorFor()`, `EditorForModel()` in MVC sample
- add an on-disk editor template to MVC sample
2014-04-28 14:53:07 -07:00
Sebastien Ros
b3046a0285
AllowAnonymous can override AuthorizeAttribute
...
#309
2014-04-28 14:04:10 -07:00
Yishai Galatzer
3636440cae
Fix bug# 289
...
The ordering algorithm was ignoring errors that came from user code,
and only respected errors from model properties
2014-04-28 12:51:55 -07:00
Sebastien Ros
4568e74954
Adding null check in ctor
2014-04-28 12:38:38 -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
David Fowler
8d53d40647
CR feedback
2014-04-28 11:19:36 -07:00
David Fowler
cff4a21e08
Make razor roslyn compilation work on mono
...
- Added a metadata cache (we need this for core clr). Will consider
moving this into the core
- Skip pdb generation on mono
2014-04-28 11:19:36 -07:00
harshgMSFT
926b335101
Fix for Issue #319
2014-04-28 11:18:15 -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
dougbu
66ca046135
Reintroduce `IHtmlHelper` and use it everywhere possible
...
- no more `IHtmlHelper<object>` in `DefaultDisplayTemplates` and also no
need for `ViewDataDictionary<object>` in a few places
- mostly removals from `IHtmlHelper<TModel>` but did cleanup comments and
add `[NotNull]` for `DisplayFor()`, `DisplayNameFor()`,
`DisplayNameForInnerType()`, and `LabelFor()`
- also add `[NotNull]` for `this` and `Expression` parameters in some
extension methods
2014-04-28 10:57:36 -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
sornaks
e21688ffb5
#190 Tighten protections around `ModelStateDictionary` additions
2014-04-28 08:46:47 -07:00
Pranav K
f740aabb79
Reviving RangeAttributeAdapter, RequiredAttributeAdapter,
...
StringLengthAttributeAdapter
* Adding remaining DataTypeAttribute adapter rules
2014-04-26 11:39:29 -07:00
Praburaj
acb8421c90
Enabling Url.IsLocalUrl in the music store code
2014-04-25 15:58:20 -07:00
Yishai Galatzer
a5afd3eb42
ActionResult implements IActionResult, and all our default implementations now use ActionResult
...
All controller methods return the specific ActionResult type
2014-04-25 15:57:02 -07:00
Pranav K
f5ba63ea1e
Fixing missing files in kproj
...
Fixing typo in sample filter
2014-04-25 14:48:14 -07:00
Ryan Nowak
8eecad9d83
Bringing back UrlHelper.IsLocalUrl
...
This has been compied verbatim from MVC (intentional). The tests have been
modernized a bit as well, but all the cases covered in the original are
there.
This may be moved to HttpAbstractions at some point in the future.
2014-04-25 14:29:00 -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
harshgMSFT
f26cc51e2e
Introducing AntiForgery System :
...
- Config is cleaned up to not have IAdditionalDataProvider and SuppressIdentityChecks.
- Added a DefaultClaimUidExtractor which looks for NameIdentifier and if not present serializes entire claims.
- Added HtmlHelper.
- AntiForgery now returns an AntiForgeryTokenSet which represents a tuple of cookie and form tokens.
2014-04-24 18:12:11 -07:00
Pranav K
d61915149c
DictionaryBasedValueProvider results null when value is not found
...
* Guard against Dictionary returning null values
2014-04-24 18:10:06 -07:00
ajcvickers
ab1af578dd
Updating EntitySet/EntityContext to DbSet/DbContext
2014-04-24 17:25:33 -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
Sebastien Ros
0fe028a4dd
Implementing Authorize attribute
...
#272
2014-04-24 16:21:43 -07:00
Sebastien Ros
f5200a1d55
Implementing IAuthorizationService
...
#7
2014-04-24 16:16:15 -07:00
Pranav K
2ba8780ee0
Reviving MinLength and MaxLength attribute adapters
2014-04-24 15:52:05 -07:00
Pranav K
b0c7dc9220
Make IModelBinder and IValueProvider methods async
2014-04-24 15:16:27 -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
N. Taylor Mullen
d46389888d
Modify search location for views.
...
When areas are not provided area locations are not searched for views. Also
added tests for search locations in RazorViewEngine failures.
2014-04-24 14:03:36 -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
ajcvickers
1c3b2ccc31
IDDI again... (Remove call to WithServices)
...
Per latest changes to EF DI/config.
2014-04-23 13:51:15 -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
Pranav K
3671e8c5b4
Reviving CompareAttributeAdapter and ModelClientValidationEqualToRule
2014-04-22 23:11:24 -07:00
Pranav K
cc00d8cff7
Modify TypeConverterModelBinder to use ValueProviderResult.CanConvertFromString to determine if it can convert a
...
value
* Adding support for extra type conversions
2014-04-22 23:00:58 -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
N. Taylor Mullen
9abd67da4b
Cleaned up some code writer code.
...
Modified the ToString override to be GenerateCode and fixed how it cached.
2014-04-22 15:21:09 -07:00
Hao Kung
5ba60857a7
Identity DI changes
2014-04-22 14:01:42 -07:00
Hao Kung
d827b9fff2
More DI-ify identity
...
Follow K patterns for DI
- IdentityBuilder
- IServiceProvider constructor
- Unit tests for Startup usage/new DI builder
- Move template default configuration into DefaultServices
2014-04-22 13:31:23 -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
Ryan Nowak
73670fb5d7
CR feedback for filters
2014-04-21 13:34:00 -07:00
dougbu
b8731621df
Add default `Display*()` templates
...
- first get old code in correct spot
- then get default templates working in new world
- usual things: `[NotNull]`, `var`, internal -> public
- provide a `HtmlHelper.GenerateOption()` static method
- pass an `ViewDataDictionary<object>` instance to `TemplateRenderer` constructor
- run default templates synchronously with an IHtmlHelper<object>
- copy over resources
- add Microsoft.Data.Entity reference for EntityState type
- use default templates in MVC sample
- remove most on-disk overrides of the default templates
2014-04-19 19:00:42 -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
389678042f
ID DI (Update Identity to use EF DI/config)
...
Constructors that take IServiceProvider so it can be injected and also kept the parameterless constructor which will create its own DI container as before--not sure if this is desirable for Identity or not, but can be changed later.
2014-04-18 14:55:55 -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
05a2319d84
Moved BuilderExtensions to Microsoft.AspNet namespace
2014-04-18 00:51:27 -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
9726a26056
Update based on new API changes
2014-04-17 22:25:17 -07:00
David Fowler
689bdf2072
Removed properties folder
2014-04-17 22:20:40 -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
David Fowler
c4f01b8ec9
Removed MVC's custom request scope
...
We need to figure out a consistent way to throw errors when there isn't
a request scope already setup.
2014-04-17 20:10:18 -07:00
David Fowler
b3d851dfe9
Added [NotNull]
2014-04-17 20:01:49 -07:00
David Fowler
73e1386724
Added UseMvc extension method via IBuilder extensions.
2014-04-17 19:55:23 -07:00
Hao Kung
da7140b9d0
Port Identity 2.1 API changes
...
Add AddToRoles and RemoveFromRoles
2014-04-17 15:46:06 -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
Hao Kung
4a3ad0870c
Port GetUserId/UserName IIdentity extensions
2014-04-17 12:52:17 -07:00
Hao Kung
43b780c8ac
Fix typo in resources.designer.cs
...
https://github.com/aspnet/Identity/issues/37
2014-04-17 12:20:19 -07:00
dougbu
b8eb16d98d
Fix #266 : Throw when views aren't found at call sites
...
- note `htmlHelper.Display()` does not throw on failures
2014-04-17 12:05:16 -07:00
Louis DeJardin
f19fe0cbef
Filters version 2.0
...
This is functionally much more similar to legacy MVC.
Rather than a pure single pipeline, filter execution takes place in more
stages.
2014-04-17 11:45:58 -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
David Fowler
93c9b3419e
Made some changes to the MvcApplication class
...
- Renamed it to MvcRouteHandler
- Removed required IServiceProvider ctor param.
- The HttpContext flows the application services through to MVC. This does
require a call to app.UseContainer in order for things to work but that should be fine.
This will be the pattern we use for all frameworks going forward and we'll need to have some
good error handling around this area when things aren't wired up properly.
2014-04-17 00:02:10 -07:00
David Fowler
44ee632825
Added overload that takes IConfiguration
2014-04-16 23:59:37 -07:00
David Fowler
4fc0b56dfa
Added extension method to ServiceCollection to register default services
2014-04-16 23:59:36 -07:00
Ryan Nowak
40e7fcc9ba
Turning on warnings as errors
2014-04-16 20:21:07 -07:00
Ryan Nowak
5075679936
Cleaning up more warnings
...
These are the cases where an interface returns Task, but our
implementation is synchronous. In these cases we prefer to declare the
method as async and suppress, because this keeps the exception semantics
the same as a 'true' async method.
2014-04-16 20:09:01 -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
Ryan Nowak
c54f6d006b
Fix for #57
...
Removing last use of ActivatorUtilities
2014-04-16 18:36:44 -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
Ryan Nowak
b8bd6a5886
Fixing a warning
...
The constant ValidationType was hiding a property on the base class.
2014-04-16 16:50:31 -07:00
Chris Ross
a748266eb6
Update to use new tooling.
2014-04-16 15:57:28 -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
harshgMSFT
72732868c6
Adding DisplayName, Label HtmlHelpers.
2014-04-16 11:41:47 -07:00
Pranav K
b9b652084a
Introducing IClientModelValidator to support client validation
...
* Adding support for validator adapters in DataAnnotationsModelValidatorProvider
* Adding Regex and DataType validators
2014-04-16 06:27:52 -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
Ryan Nowak
f34ed467e4
Fix for #246 - ActionLink generating wrong urls
...
There's an overload that's missing from ActionLink but is present on url
helper, making it very easy to mistakenly pass the wrong data. In the case
of #246 , the controller name is treated as the route-values and the
route-values treated as html attributes, leading to the wrong link being
generated.
2014-04-15 15:23:59 -07:00
harshgMSFT
5810215306
Updating the Kproj file to contain the missing reference to NonActionAttribute.cs
2014-04-15 15:14:32 -07:00
sornaks
646b711b11
Adding the missed project files for WebFX:156 - Introducing RedirectToAction and RedirectToRoute
2014-04-15 13:49:57 -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
b079480383
Add SignOut to SignInManager
2014-04-15 11:21:22 -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
Sornakumar
ecd8ddeae4
WebFX 156: Adding support for RedirectToAction and RedirectToRoute
2014-04-15 10:45:57 -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
harshgMSFT
1536daa107
Adding NonAction Attribute
2014-04-14 16:18:16 -07:00
dougbu
246bb2e3dd
Add `DropDownList()` and `DropDownListFor()` HTML helpers
...
- copy over legacy MVC's `SelectExtensions`, `SelectListItem` and `SelectListGroup`
- plus expected `SelectList` and `MultiSelectList`
- fixup select HTML helpers to meet WebFx standards and work in new world
- usual stuff: `[NotNull]`, `var`, `String` -> `string`, long lines, ...
- remove `IDictionary<string, object> htmlAttributes` overloads
- move longest extension method overloads into correct classes / interfaces
- add `ViewDataEvaluator.Eval()` overload for an `object` container
- rename lower-level helpers to make purposes more obvious
- nit: move Raw() methods up from bottom of HtmlHelper.cs
- use `DropDownList[For]()` in MVC sample
2014-04-14 16:05:07 -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
dougbu
271c849923
Fix #231 ; add `ViewBag` to `ViewComponent`
...
- update MVC sample to demonstrate use and that `ViewBag` is scoped
- nit: add a bit of padding between border and tag cloud words
2014-04-12 14:10:16 -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
Hao Kung
538e8dabea
Move POCO to Core
...
- Move POCO types to core
- Keep Entity pocos initially (will try to remove soon)
- Reenable Entity unit tests now that blocking data bugs have been fixed
2014-04-11 15:00:49 -07:00
Chris Ross
165effebde
Abstractions: Pull in k10 dependency for IdnMapping.
2014-04-11 10:52:45 -07:00
Pranav K
0f6df5405b
Reviving support for IValidatableObject in CoreCLR
2014-04-10 22:09:57 -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
dougbu
ba08f8e8d8
Cleanup Display, Partial, and Validation extensions
...
- correct file and class names for some HH extensions
- three class names were correct but didn't match containing file
- three class and file names matched but didn't start with HtmlHelper
- clean up trailing whitespace and long lines in changed Extensions.cs files
- `HtmlHelperPartialAsyncExtensions`, `HtmlHelperRenderPartialAsyncExtensions`
and `HtmlHelperValidationExtensions` lacked some `[NotNull]` attributes
- merge extension files by concept
- Display / DisplayFor / DisplayForModel methods all into `HtmlHelperDisplayExtensions`
- Partial / RenderPartial methods all into `HtmlHelperPartialExtensions`
- use `IHtmlHelper<TModel>` everywhere
2014-04-10 17:12:16 -07:00
Chris Ross
7edb32f526
Cookies: Do redirects for 401s if Active, regardless of challenges.
2014-04-10 16:32:44 -07:00
Ryan Nowak
d2453c5832
Bringing back Razor.Host as an assembly as a TEMPORARY WORKAROUND
...
The tooling team needs this as separate assembly. This will be removed
again soon.
2014-04-10 15:54:47 -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
Wei Wang
86d327366f
Fix wrong order of arguments passed to ArgumentException ctor
2014-04-10 13:56:50 -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
Ryan Nowak
408d4056b1
Rearrange ViewContext
2014-04-10 11:40:57 -07:00
Ryan Nowak
cda73e95a8
Integrate dictionary helper with existing code paths
2014-04-10 11:21:35 -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
dougbu
f0c6512b61
Catch up with previous `ActionNameAttribute` addition
2014-04-10 09:27:45 -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
harshgMSFT
53b76380eb
Adding ActionName Attribute
2014-04-09 15:48:30 -07:00
dougbu
1da2d6d9dc
Checkin VS auto-update to .kproj file
2014-04-09 14:31:33 -07:00
dougbu
82b071c80e
Add CR-requested comment
2014-04-09 14:30:12 -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
dougbu
f0a97772f5
Add remaining HTML input helpers
...
- add `CheckBox[For]()`, `Hidden[For]()`, `Password[For]()`, and
`RadioButton[For]()`
- also make `FormatValue()` visible to users, as it is in legacy MVC
- and spread the boxes out a bit in MyView 😺
2014-04-09 12:52:47 -07:00
David Fowler
b1fd5cc689
Made a few more changes since we have new tooling
...
- Remove runtime interface declarations and use
Microsoft.Net.Runtime.Interfaces package
- Made tests compile for net45 and made default
intellisense view net45 for unit tests since Moq
doesn't work
2014-04-09 12:24:16 -07:00
David Fowler
a970fa04ab
Updated to use the new tooling
2014-04-09 12:24:16 -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
Ryan Nowak
35bfa84274
CR feedback
2014-04-09 11:10:05 -07:00
Ryan Nowak
4e1511ed4d
Adding ActionLink
2014-04-09 11:07:15 -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
Pranav K
c8ede78582
Expanding ValueProviderResult to support more data types
...
* Reviving tests for ValueProviderResult
2014-04-09 09:33:29 -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
Ryan Nowak
527394c492
CR feedback
2014-04-08 16:05:51 -07:00
Ryan Nowak
e740633c06
CR feedback
2014-04-08 16:05:49 -07:00
Ryan Nowak
ab605ef935
Fix for #215 - nullref trying to generate link in a partial
...
The fix here is to do some cleanup we've been planning to do for a while,
rather than flowing IUrlHelper and IComponentHelper as part of the
ViewContext, they now are just grabbed from the service provider.
This simplifies the code for invoking a view, and gets us closer to the
desired API surface of ViewContext
2014-04-08 16:05:48 -07:00
Ryan Nowak
749789c486
CR feedback
2014-04-08 15:57:40 -07:00
Ryan Nowak
084c7f80e5
Further rearranging IView/IViewEngine/ViewContext et al
2014-04-08 15:57:39 -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
David Fowler
1998b65c52
Updated to use the new tooling
2014-04-08 13:01:23 -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
dougbu
4feb8f4f28
Remove reduncant `ArgumentNullOrEmpty` resource from Core project
...
- came from Rendering but Core already had `ArgumentCannotBeNullOrEmpty`
- moved wording from "argument must not be" to "value cannot be"
Also make similar resources consistent in this repo
- adjust Razor's `ArgumentCannotBeNullOrEmpty` resource to use same wording
as Core, adding "The"
- update ModelBinding to also have `ArgumentCannotBeNullOrEmpty` and to use
it consistently with Core and Razor
2014-04-08 12:03:50 -07:00
Chris Ross
551fca35d3
Review cleanup, rename Provider to Notifications, use NotNull.
2014-04-08 11:28:08 -07:00
Sornakumar
b25091f6c1
Merge branch 'WebFX156' into dev
2014-04-08 10:52:38 -07:00
sornaks
7c8dd45b8b
WebFX 156 - Adding support for Redirect and RedirectPermanent
2014-04-08 10:49:56 -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
harshgMSFT
01527cd4df
Adding HttpPost, HttpDelete, HttpPut, HttpPatch attributes
2014-04-07 22:31:48 -07:00
Ryan Nowak
faa8251b70
Merging Mvc.Rendering and Mvc.Core
2014-04-07 17:32:49 -07:00
harshgMSFT
652e89b343
Adding HttpGetAttribute and AcceptVerbsAttribute.
...
HttpPost, HttpDelete, HttpPut and HttpPatch would be similar.
Also adding few tests.
2014-04-07 15:10:22 -07:00
Ryan Nowak
df16982697
Adding and updating old propertyhelper code for dictionaries
2014-04-07 14:41:24 -07:00
Ryan Nowak
ec4b3a29c0
Adding smart link generation
...
This feature will enforce a contract that link generation has to point to
a real action. Read the comments in code for more details and rationale.
2014-04-07 14:37:52 -07:00
Ryan Nowak
3548a46ca9
CR feedback
2014-04-07 12:49:32 -07:00
Ryan Nowak
d2386d7ded
CR Feedback
2014-04-07 12:49:30 -07:00
Ryan Nowak
37f4e2efaa
Adding more overloads for IUrlHelper
...
(cherry picked from commit 4ebe6b5e386388914160b07c91142a9e7483134b)
2014-04-07 12:49:29 -07:00
Pranav K
931d18b851
Adding exceptions for RenderSection, DefineSection and RenderBody
2014-04-07 12:25:44 -07:00
dougbu
1cd15fbf60
Add form HTML helpers and `MVCForm`
...
- copy over from legacy MVC
- fixup namespaces, remove copyright notices, ...
- temporarily remove `RouteBeginForm() overloads
- move main components to `HtmlHelper` and declare in `IHtmlHelper<T>`
- change `UrlHelper` to avoid treating an existing dictionary as an object
- add `HtmlHelper.Createform()` factory
- use in MVC sample; move BeginForm / TextBox samples to a new row
2014-04-07 12:04:28 -07:00
Pranav K
94c028a5df
Adding support for RazorView.IsSectionDefined
2014-04-06 17:18:37 -07:00
N. Taylor Mullen
c0d06f1fbc
Fixed combination of Display Templated Helpers.
...
Had to make adjustments to allow the project to build (things that were missed by git). Also made some changes to ensure it builds in CoreCLR.
2014-04-06 16:14:10 -07:00
N. Taylor Mullen
671c7dd59e
Addressed code review comments.
2014-04-06 16:01:41 -07:00
N. Taylor Mullen
1f47abd758
Implement DisplayForModel Html Helper.
...
Essentially add extension methods and call through to infrastructure.
2014-04-06 16:01:10 -07:00
N. Taylor Mullen
4f67dee048
Addressed code review comments
2014-04-06 15:59:51 -07:00
N. Taylor Mullen
52ce83db9e
Implement DisplayFor Html Helper.
...
Essentially add extension methods and call through to infrastructure.
2014-04-06 15:59:32 -07:00
N. Taylor Mullen
2b3687282e
Addressed code review comments.
2014-04-06 15:57:32 -07:00
N. Taylor Mullen
8477f47632
Implement Display HTMLHelper.
...
Essentially add extension methods and call through to infrastructure.
2014-04-06 15:55:11 -07:00
N. Taylor Mullen
5da827b58f
Add infrastructure for templated display helpers.
...
I changed code paths for how we render templates from the old world to better separate code.
2014-04-06 15:53:30 -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
fc01cf6eea
Fixing typo in DefaultAssemblyControllerProvider
2014-04-04 16:29:16 -07:00
Hao Kung
e8d7cf4219
Asyncify and Userify
...
Add Async suffix to async methods
Take TUser instead of userId for Usermanager apis
2014-04-04 13:42:22 -07:00
Yishai Galatzer
1921387b56
Fix #198
2014-04-03 17:29:37 -07:00
Hao Kung
6807da690a
Remove IUser/IRole and TKey from Managers
2014-04-03 17:17:50 -07:00
Hao Kung
041db7cb69
Initial Identity.Entity implementation
...
- Most child entities related apis not working/implemented
- Unit tests disabled in kbuild for now
Code review fix
2014-04-03 16:07:46 -07:00
Pranav K
9291cbc50b
Adding support for RenderSection
...
* Adding unit tests for DefineSection \ RenderSection
* Changes per code review feedback
2014-04-03 15:00:06 -07:00
Pranav K
df9d5c4875
Adding support for Render Section
...
Initial draft for DefineSection \ RenderSection. This change is based on
changes to the Razor parser to enable Razor to generate HelperResults for
section instead of void delegates.
2014-04-03 14:26:54 -07:00
Pranav K
75dae948b2
Change IViewEngine.FindView to be synchronous
2014-04-03 14:20:39 -07:00
Pranav K
2e0bed750e
Adding support for Url.Content, Href and ~/ in Razor views
2014-04-03 14:12:55 -07:00
Pranav K
f4904e1803
Fixing PathString.Add(PathString) to handle trailing slashes correctly
...
Fixes #31
2014-04-03 12:55:45 -07:00
Ryan Nowak
49de9d2828
Adding Value Html Helpers
2014-04-03 12:22:03 -07:00
Chris Ross
d83d2e98d6
Review cleanup, fallback logger, CreateDataProtecter extension.
2014-04-03 10:43:11 -07:00
dougbu
42561f14d3
Quick fix for a build warning
...
- remove a duplicate using of `System.Collections.Generic`
- FYI `k build` command does not detect this problem
- nit: also cleanup long lines and align wrapped parameters
2014-04-03 09:38:14 -07:00
Yishai Galatzer
ebd54bfc06
Dispose controllers after they have been utilized by the action invoker
2014-04-03 09:31:23 -07:00
dougbu
0a62a581de
Add `TextBox` and `TextBoxFor`
...
- HtmlHelper service now needs an `IModelMetadataProvider` instance
- make `GetInputTypeString()` private
- use `TextBox()` and `TextBoxFor()` in MVC sample
- throw if `ExpressionMetadataProvider.FromLambdaExpression()` returns `null`
2014-04-02 20:49:48 -07:00
dougbu
a1a180d4d0
Fill out Rendering.Expressions II
...
Copy from:
- some `static` `ModelMetadata` methods -> `ExpressionMetadataProvider`
- `TryGetValueDelegate` -> `TryGetValueDelegate`
- `TypeHelpers.CreateTryGetValueDelegate()`, related bits -> `TryGetValueProvider`
- `ViewDataDictionary.ViewDataEvaluator` inner class -> `ViewDataEvaluator`
- `ViewDataInfo` -> `ViewDataInfo`
- `ViewDataDictionary.Eval()`, related bits -> add to `ViewDataDictionary`
Change to fit in new world:
- usual stuff: `var`, `[NotNull]`, String -> string, namespaces, etc.
- PropertyDescriptor -> PropertyInfo
- update Reflection use
- no `IModelMetadata.Container` property
- improve a couple of variable and parameter names
- make `ViewDataInfo` immutable
- make `ViewDataDictionary.FormatValueInternal` `public` and -> `FormatValue`
- remove `[SuppressMessage]` attributes
2014-04-02 20:02:36 -07:00
Yishai Galatzer
d081300185
Factor filters action to private methods
2014-04-02 18:51:50 -07:00
Yishai Galatzer
9756f74565
Action invocation changes:
...
Changed 404s to throw
Propagate reflected exception
Add resources for specific errors
2014-04-02 18:51:49 -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
Ryan Nowak
1b4754454b
Relayering MVC Dependencies Part 1/N
...
Merging Mvc.Razor.Host into Mvc.Razor
2014-04-02 18:28:34 -07:00
sornaks
9f3433acec
WebFX 156 - Introducing RedirectPermanent.
...
Merging RedirectPermanent to Redirect.
2014-04-02 15:24:20 -07:00
dougbu
7a97b13c8c
Cleanup pass in Rendering (and Common)
...
- correct `ArgumentNullOrEmpty` and pass parameter name to
`ArgumentException` constructor
- remove `[SuppressMessage]` attributes
- `AnonymousObjectToHtmlAttributes` should return an `IDictionary`
- `var`
- remove straggling copyright notices
- wrap long lines (did not reword any comments)
- align a few parameters
2014-04-02 14:59:35 -07:00
N. Taylor Mullen
dad87c5239
Add ValidationSummary helper.
...
This enables Html.ValidationSummary. This is in reference to WEBFX-97.
2014-04-02 14:58:08 -07:00
Hao Kung
8549d83b7c
Identity.Security not enough to prevent infection
...
- Viral cancellationToken API infection everywhere
- Add Identity.Security SignInManager which depends on Abstractions
2014-04-02 12:25:52 -07:00
Pranav K
9c4a6e901d
Modifying DefineSection to generate HelperResult types
2014-04-01 18:32:37 -07:00
Chris Ross
2b226c936f
Update for latest abstraction contracts.
2014-04-01 17:18:37 -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
Yishai Galatzer
b9010072aa
Fix github #164 (when return type is object we always return 204)
2014-03-31 18:59:19 -07:00
dougbu
fbbc59b392
Add `Name()`, `NameFor()`, and `NameForModel()` helper methods
...
- `Name()` is a `virtual` instance method to allow useful derivation
- `NameFor()` is an instance method to avoid adding `GetExpressionName()`
to the public surface; either method could be `virtual`
- `NameForModel()` is an extension method because it's not usefully overridden
- use `Name*()` in sample
2014-03-31 16:07:56 -07:00
dougbu
aaa30591a8
Get things working in our world
...
- usual stuff, especially use of `var` and `[NotNull]`
- remove references to `ExpressionFingerprintChain` and so on to minimize
classes we bring over now (and remove one cache)
- copy over missing resource
- rework checks in `IsSingleArgumentIndexer()`
2014-03-31 15:31:40 -07:00
dougbu
f108315038
Copy over two expression-support classes from legacy MVC
2014-03-31 15:31:39 -07:00
Sornakumar
e8a76cfd7f
Merge pull request #151 from sornaks/WebFX153
...
WebFX-153: Add Content() and Json() to the Controller class.
2014-03-31 15:03:56 -07:00
harshgMSFT
8d4a6c760a
Action Selection Convention: Changes for Treating Index method as a default Get/Post method.
...
Also adds unit tests for the changes.
2014-03-31 12:59:30 -07:00
Chris Ross
60f09fbc93
Make lower level public API. Layering.
2014-03-31 12:47:28 -07:00
Pranav K
c72c80c101
Add the ability to correctly determine if a particular field has been validated.
...
There are several portions of model validation that attempt to avoid
revalidating if a field has been validated. However the behavior of
ModelStateDictionary makes it difficult to distinguish between an
unvalidated field and a field without validation errors. This change
resolves this issue by letting the caller distinguish between the two
cases.
2014-03-31 12:40:38 -07:00
N. Taylor Mullen
2de5d57348
Add PartialAsync and RenderPartialAsync.
...
This enables Html.PartialAsync and Html.RenderPartialAsync. It also includes a sample to showcase the features. This is in reference to WEBFX-95.
2014-03-31 12:19:10 -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
Chris Ross
83855f8eac
Redesign security contracts.
2014-03-31 10:30:57 -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
N. Taylor Mullen
a5ed1157d5
Refactor ViewEngine to support partials.
...
This references WEBFX-95 and is the preliminary part to support Partial helpers.
2014-03-30 17:20:09 -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
dougbu
2b70156cf4
Inject `HtmlHelper` property into `RazorView<T>`
...
- add `IHtmlHelper<T>` and `ICanHasViewContext`
- adjust `HtmlHelper` and `HtmlHelper<T>` to match
- throw if `ViewContext` accessed prior to `Contextualize` call
- XML comments (from old world) all around
Note
- no current need for an `HtmlHelper` copy constructor or `Clone()` method
- expect recursion code to get another injected `IHtmlHelper<T>` and then
"contextualize" that instance with a new `ViewContext`
2014-03-28 17:29:00 -07:00
dougbu
94db3c392a
Add `FormContext` to `ViewContext`
...
- start with `FormContext` and classes it needs from legacy world
- FYI `ModelClientValidationRule` came from Web Pages; the rest from MVC
Cleanup and make files compile in new world
- remove `FormContext.GetJsonValidationMetadata` method; will file an
issue to revive this using Json.NET
- don't store `FormContext` in the `HttpContext`, no longer have child
actions
- do `null` checks in setters, not getters (minor perf improvement)
- fix namespaces and usings
- wrap long lines; use `[NotNull]`; no copyright notice
- use explicit comparers for dictionaries
- add XML comment for odd `ModelClientValidationRule.ValidationType`
property
- Collection -> List
2014-03-28 17:01:23 -07:00
Yishai Galatzer
54c73e4227
Cleanup + TODO
2014-03-28 16:55:56 -07:00
Pranav K
f1efbde29d
Revive HelperResult to allow using @helper in views
2014-03-28 11:08:15 -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
50f4fff510
Updating CoreCLR package versions
2014-03-28 09:28:23 -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
dougbu
655b329dd0
Increment System.Threading.Tasks package version
...
- today's build break, mark II
also remove dangling reference to TestCommon
2014-03-27 19:56:27 -07:00
Pranav K
3ce198249d
Updating CoreCLR package versions
2014-03-27 18:42:51 -07:00
Pranav K
0dcb918084
Updating remaining package versions to match CoreCLR
2014-03-27 18:34:04 -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
dougbu
f60f14d537
Add `TemplateInfo` property to `ViewDataDictionary`
...
Compared to legacy MVC:
- correct usings and namespace
- remove `GetFullHtmlFieldId` method; depends on `HtmlHelper` method that
can't be static
- String -> string
- remove reference to a legacy bug
- convert internal `VisitedObjects` property to public `AddVisited()` method
Further cleanup
- remove explicit backing fields for remaining properties
- add copy constructor to replace code distributed around legacy MVC
- don't "combine and trim" in `GetFullHtmlFieldName()`
2014-03-27 16:01:29 -07:00
Pranav K
264fa5204b
Update version of System.Text.Encoding to match CoreCLR
2014-03-27 15:25:40 -07:00
Ryan Nowak
ffb73a1ed8
Fix build issues with Injector
...
This was causing intellisense failures in VS. It looks like the
commandline is able to accidentally pick up the compatability extensions
from the model binding assembly, but this is not the case in VS.
Changed this code not to rely on compatability extensions.
2014-03-27 15:07:28 -07:00
sornaks
007ac9443d
WebFX-153: Add Content() and Json() to the Controller class.
2014-03-27 14:12:39 -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
Pranav K
44af396da9
Prefer string.Equals static method over the Equals instance method
2014-03-26 22:24:38 -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
Pranav K
8e495158ef
Modifying ModelStateDictionary to derive from IDictionary
...
* Reintroducing methods that weren't ported over earlier
2014-03-26 17:29:45 -07:00
Ryan Nowak
6da448fb8e
Commonizing JSON writer/serializer code
...
This doesn't add any new extensibility, and will likely change again in
the future when we add extensibility. For now this is a stopgap to reduce
duplication between JsonResult and JsonViewComponentResult.
2014-03-26 17:02:44 -07:00
Ryan Nowak
469414c419
Adding support for scoped services in WebFX
...
We'll create a scoped service provider if the middleware that does it
isn't there.
We resolve all of our stuff from the scoped service provider, allowing
users to plug in any scoped things they want.
Ported UrlHelper to be a scoped service.
2014-03-26 12:45:36 -07:00
Ryan Nowak
21e48be06e
Patternizing our property injection/initializer
2014-03-26 11:58:20 -07:00
dougbu
8ed5b7b079
Fix WebFx-169 and #118
...
- move `DynamicObject` derivation up to new `DynamicViewData` class, fixing [WebFx-169](http://projectk-tc:8080/browse/WEBFX-169 )
- avoid direct `_data` lookup in previous `TryGetMember()`, fixing [#118 ](https://github.com/aspnet/WebFx/issues/118 )
- rename ViewData -> ViewDataDictionary
Also
- flesh out `IDictionary<string, object>` implementation in `ViewData`
- provide `ViewData` copy constructor that allows TModel to change
- remove `TryGetIndex()` and `TrySetIndex()` implementations; use `ViewData[]` instead
- restore `ViewContext.ViewBag` from legacy MVC
2014-03-26 11:42:52 -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
Pranav K
12632c5fc3
Replacing not null checks in ModelBinding with NotNullAttribute : part deux
2014-03-25 15:10:57 -07:00
Ryan Nowak
6fb0d5b282
Commonize 'throw on view not found'
...
Deduping this code by moving it to ViewEngineResult.
2014-03-25 14:25:49 -07:00
Ryan Nowak
fa21d1cd65
Remove extra TextWriter parameter from IView
...
This was here in the legacy code for legacy reasons. We're passing the writer
as part of the ViewContext, so we can remove this extra parameter.
2014-03-25 14:19:43 -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
Pranav K
a2cea18529
Replacing argument not null checks in ModelBinding with NotNullAttribute
...
* Removing not null guard tests in ModelBinding
2014-03-25 12:35:33 -07:00
Ryan Nowak
86ac978451
Implementation of ViewComponents
2014-03-25 11:04:37 -07:00
David Fowler
699b146d1f
Bumped the version of immutable collections.
2014-03-25 02:06:59 -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
dougbu
d3217fd3af
Cleanup warnings
...
- primary action is removing interfaces from Razor that Core exports
- also remove an unused field from Core's `DefaultControllerAssemblyProvider`
2014-03-22 18:58:23 -07:00
David Fowler
47b33b907f
Removed System.Runtime.Hosting dependency
2014-03-22 15:17:11 -07:00
Ryan Nowak
89b53aab25
Fix API change in ITypeActivator
2014-03-21 18:16:02 -07:00
Ryan Nowak
2207acb917
Incorporate breaking change from DI
2014-03-21 17:53:18 -07:00
Ryan Nowak
dc6843acf7
Move registration of nested provider infrastructure
...
The DI system has support for registering open generics now, so we can go
through that instead of directly through autofac.
2014-03-21 16:47:31 -07:00
N. Taylor Mullen
5b6eb307ae
Re-plumb ModelState.
...
Modified ModelState to only ever be created on the ActionContext and then plumbed/exposed it on ViewData and Controller. This will enable: ActionFilterContext's will have access to ModelState via its ActionContext member, allow HTMLHelpers to access ModelState via ViewData, and unify the locations of "source" model state. In the old world we used to copy/replace/instantiate new model state all over unnecessarily.
2014-03-21 16:19:13 -07:00
dougbu
32d031c6eb
Add `ModelMetadata` to `ViewData`
...
- demonstrate `ModelMetadata` is available in a view
Also
- simplify `View()` overloads in `Controller`, pending #110 decisions
- make `Model` in `RazorView<T>` readonly
2014-03-21 14:42:42 -07:00
harshgMSFT
f20b798a07
Modifying the Default Action convention to have verb only methods
2014-03-21 12:34:42 -07:00
Pranav K
f1c4a8e497
Change FormValueProviderFactory to use GetContentType for media type matching
...
Fixes #68
2014-03-21 12:10:12 -07:00
Ryan Nowak
1ca2203421
cr feedback
2014-03-21 11:13:15 -07:00
Ryan Nowak
6610788b75
Restore the TextWriter to ViewContext
2014-03-21 11:13:14 -07:00
Pranav K
8ea196023e
Modify controller discovery to only look for types that reference Mvc.Core
...
assembly
2014-03-21 10:02:54 -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
Pranav K
683c5bf9b3
Adding JsonInputFormatter for reading json encoded data from the request
...
body
2014-03-20 20:48:25 -07:00
dougbu
4364986137
System.Text.Encoding has rev'd
2014-03-20 14:38:54 -07:00
Ryan Nowak
c4a15f021f
Passing additional data on the ViewContext for resolving views.
...
This will be necessary for partials, and for Components.
Basically, the view engine uses a dictionary of data to find the top level
view (for an action) - after we do that, we want this context to be
sticky, which means we need to pass it around. This ensures that partials
and components will be resolved under the same paths as the main view.
Currently this 'data' is just the route values - and there is an ongoing
discussing about the right design here. The data that's being passed WILL
change in the future.
2014-03-20 12:18:02 -07:00
Chris Ross
2c49d89094
Code review cleanup.
2014-03-20 11:19:42 -07:00
Yishai Galatzer
8b6d39507d
Feedback: Make common base class for all contexts and all of them expose FilterItem collection
...
ExtensionMethod will now apply to the base FilterContext class
2014-03-20 09:59:24 -07:00
Yishai Galatzer
adffc95b81
AllowAnonymous attribute + Consumption + Sample
2014-03-20 09:59:24 -07:00
Hao Kung
c4d32ef1d6
Remove ConfigureAwait(false) everywhere
2014-03-20 09:42:52 -07:00
dougbu
5875452755
Quick fix-ups
...
- Move .NET test projects back into net45 folder
- Catch up with latest System.Runtime.InteropServices version
2014-03-19 23:41:17 -07:00
Yishai Galatzer
dcc286a299
Refactor FindView to always take a viewName (no null support)
...
and only use RouteValues (or generically just Dictionary<string, object>).
This is temporary and will change once we get Partials (which are currently just dead code)
For now this will unblock ViewComponents
2014-03-19 18:48:36 -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
Pranav K
f8dd52dfe3
Reintroducing BindingBehaviorAttribute attribute
...
* Porting MutableObjectModelBinder tests
* Fix issues in MutableObjectModelBinder introduced by changing from
TypeDescriptors to reflection
2014-03-19 16:52:02 -07:00
Hao Kung
5e36691909
Port ClaimsIdentityFactory and more tests
2014-03-19 15:08:43 -07:00
Chris Ross
951dcbebb7
Add IServerInformation to IBuilder.
2014-03-19 11:35:24 -07:00
harshgMSFT
9cd99a42a7
ActionExecutor implementation WebFx W113
...
The changes include:
1. Action executor changes required for supporting sync and async operations Taksk and Task
2. Adding test project for MVC core - This contains ActionExecutor Tests.
3. Also adding a resources file for MVC core project
2014-03-19 11:10:42 -07:00
dougbu
4bc7c36522
Merge two `TypeExtensions` classes into Common\TypeExtensions.cs
...
- add missing `[NotNull]` attributes
- remove now-unneeded usings for ...ModelBinding.Internal namespace
Also get ModelBinding test project working under CoreCLR
- create separate k10 and net45 folders under test in VS
- add `[InternalsVisibleTo]` to make `TypeExtensions` visible to test assembly
- correct tests' `CultureInfo` use to compile under CoreCLR
- ifdef out CoreCLR tests depending on Moq, ReadOnly, ...
- remove a couple of tests expecting TypeConverter to work
2014-03-19 09:53:40 -07:00
Yishai Galatzer
227121b3f9
CR Feedback
2014-03-19 09:26:20 -07:00
Yishai Galatzer
7d9a6297f9
Fix debug string
2014-03-19 09:26:19 -07:00
Yishai Galatzer
cfb06c0de3
Areas feature - Phase I
...
1. Areas defined by the Area attribute
2. Areas are a routeconstraint on the actiondescriptor
3. Areas find pages through route values
Other changes:
1. Remove Path from ActionDescriptor - It doesn't make sense with this change
2. Add sample Area
2014-03-19 09:26:18 -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
Pranav K
072e2cc1f1
Updating DataAnnotations version in project.json
2014-03-18 20:56:08 -07:00
Pranav K
eae9d3a951
Update GenericModelBinder.BindModel to use correct overload of
...
Activator.CreateInstance
2014-03-18 16:34: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
dougbu
3a0add8be8
Cleanup pass: Move Rendering classes to correct namespace
...
- use Microsoft.AspNet.Mvc.Rendering namespace throughout assembly
Also
- move `IdAttributeDotReplacement` from `TagBuilder` to `HtmlHelper`
- remove commented-out code in `HtmlHelper`
- use `var` and `[NotNull]` more
- `String` -> `string`
- correct Resources references; add missing resources
2014-03-18 14:02:39 -07:00
N. Taylor Mullen
50314ca7e5
Add the ability for users to await expressions.
...
This enabled things like @await Foo(). We special case the await keyword and allow another snippet of code to follow it.
2014-03-18 12:37:07 -07:00
GrabYourPitchforks
ea1f93aa91
Fix bad call to Assembly.GetType in Hosting.
...
CR: chrross
2014-03-18 11:49:41 -07:00
Hao Kung
7adb28a460
Cleanup + more unit tests (Core @ 81%)
2014-03-18 11:26:02 -07:00
dougbu
478c220ddb
Revert "Merge two `TypeExtensions` classes into Common\TypeExtensions.cs"
...
This reverts commit d534471515 .
2014-03-17 22:53:36 -07:00
dougbu
f714425619
Revert "Address CR comments"
...
This reverts commit d815329f71 .
2014-03-17 22:52:39 -07:00
dougbu
d815329f71
Address CR comments
...
- reduce #if use
- remove outdated comment
2014-03-17 22:49:30 -07:00
Louis DeJardin
ca2ef860f5
Adding IServiceProvider interfaces to HttpContext
2014-03-17 21:42:35 -07:00
dougbu
d534471515
Merge two `TypeExtensions` classes into Common\TypeExtensions.cs
...
- add missing `[NotNull]` attributes
- remove now-unneeded usings for ...ModelBinding.Internal namespace
- remove TypeExtensionTests.cs; don't add .NET 4.5-only
`[InternalsVisibleTo]` for low-level `IsCompatibleWith()` extension
2014-03-17 21:02:25 -07:00
David Fowler
cd9d3a3335
Updated hosting to use service describer
2014-03-17 19:24:31 -07:00
Hao Kung
f77614c97f
Unit test work (Core @ 78%)
...
Starting using Microsoft.AspNet.Testing
Add/Port a bunch more unit tests
2014-03-17 16:03:54 -07:00
GrabYourPitchforks
063420067e
HostingServices should provide a default implementation of IDataProtectionProvider
2014-03-17 14:09:31 -07:00
N. Taylor Mullen
f8179f03e4
Trigger view rendering asynchronously.
...
This is as simple as modifying the base class to return task and await the ExecuteAsync method. Also added a piece to the sample project to verify functionality.
2014-03-17 12:18:54 -07:00
N. Taylor Mullen
5912475a24
Change Execute rendering to be async.
...
Added the using statement required for async rendering.
2014-03-17 11:28:43 -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
0247c3a393
Updated RoslynCompilationService to account for new changes to API
2014-03-16 23:42:50 -07:00
David Fowler
d7bbcb9644
Fixed service provider building
2014-03-15 14:41:41 -07:00
N. Taylor Mullen
b1c49a2535
Remove CodeDOM from net45 Razor.
...
Removed all System.CodeDOM related code from net45. This involved modifying some existing code paths and most of all reducing the complexity of all of the CodeGenerators. Added some factory creation methods to build CodeBuilders. Ran code analysis and made adjustments to pass analysis.
2014-03-14 16:05:23 -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
Ryan Nowak
1a430f90ed
porting to web sample
2014-03-14 13:06:27 -07:00
Ryan Nowak
51e5a5bf19
Fix for issue #57
...
Replaced ActivatorUtilties with ITypeActivator in WebFX.
2014-03-14 12:51:20 -07:00
Ryan Nowak
a5cb050b97
Using AutoFac to register open generic service types
2014-03-14 12:46:17 -07:00
Chris Ross
085188996c
Initial port of Secuirty base package from Katana.
2014-03-14 12:43:45 -07:00
Pranav K
90e6897247
Fixing build
2014-03-14 10:22:37 -07:00
Chris Ross
2b7272fe07
Review feedback.
2014-03-14 10:17:46 -07:00
Pranav K
d86298ffe1
Switching over placeholder attributes to use DataAnnotation attributes
2014-03-14 09:48:40 -07:00
Yishai Galatzer
3461c44a5e
Move filteritem out to it's own class
2014-03-13 18:29:54 -07:00
Yishai Galatzer
5849ba8544
Cleanup after refactoring
2014-03-13 18:15:24 -07:00
Yishai Galatzer
c4481cf390
One more refactoring
2014-03-13 17:26:21 -07:00
Yishai Galatzer
fc168d63f6
refactor to return ordered filter list from filter provider
...
Arrange filters to a pipeline in the action invoker
Allow providing the original filter definition to a type and service filter
2014-03-13 17:26:21 -07:00
Chris Ross
6a5cb913c8
Review cleanup. Cleaner Startup auto-detect. Fix tests.
2014-03-13 14:25:30 -07:00
Pranav K
d9867b4831
Changing IModelValidatorProvider DI to be transient for now
2014-03-13 12:04:45 -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
Pranav K
e434918337
Reintroduce model validation
2014-03-12 21:55:50 -07:00
Stephen Halter
cca3f92c5f
Temporarily migrate the MvcSample project to Autofac
2014-03-12 15:17:41 -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
Hao Kung
113bab1a1d
Port ConfirmEmail, IQueryableUserStore tests
...
Also add missing IQueryableUserStore to InMemory
2014-03-12 13:43:28 -07:00
Hao Kung
33715664e2
Port more tests (InMemory @ 92%, Core @ 60%)
2014-03-12 12:13:29 -07:00
Ryan Nowak
00f15669dc
More CR feedback on URL generation
2014-03-12 11:12:52 -07:00
Ryan Nowak
77a7bb58a6
CR feedback
2014-03-12 10:57:48 -07:00
Ryan Nowak
12985c19ee
CR feedback
2014-03-12 10:57:47 -07:00
Ryan Nowak
0ce2c511d4
Adding URL generation to WebFX for controllers and views
...
This follows a similar pattern to html helpers - a minimal basis interface
that performs the main functionality, and a set of extension methods that
make up the rich API.
2014-03-12 10:57:46 -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
Hao Kung
bf649a00e1
Reenable some unit tests
2014-03-11 15:05:37 -07:00
Yishai Galatzer
9af7c2bbfb
remove usings, fix spacing
2014-03-11 13:49:26 -07:00
Ryan Nowak
5867a6a5fc
CR feedback that didnt get merged
2014-03-11 13:06:01 -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
Yishai Galatzer
ed4d29042a
Remove unused/non exiting service from RazorViewEnginer
...
Rename PathBaseViewFactory.cs to match the class name VirtualPathViewFactory
2014-03-10 23:32:55 -07:00
David Fowler
e991e86863
Updated roslyn compilation to use new host interface.
2014-03-10 23:17:52 -07:00
David Fowler
3e049fed75
Fixed compilation errors in VS
2014-03-10 23:04:31 -07:00
Yishai Galatzer
6f0151ba5e
CR Feedback, add ordering sample to the MVCSample.
...
null result handling in ActionResultFilterEndPoint
2014-03-10 22:13:06 -07:00
Yishai Galatzer
8ff65267f9
remove comment
2014-03-10 22:13:05 -07:00
Yishai Galatzer
9d3e5b5a81
Rename FilterDescriptorComparer to FilterDescriptorOrderComparer
2014-03-10 22:13:04 -07:00
Yishai Galatzer
28e0792db6
CR feedback
2014-03-10 22:13:03 -07:00
Yishai Galatzer
7ddf8a7bdb
Move global filters addition to AD creation time
...
Add origin, and simplify sorting.
Add type filter
2014-03-10 22:13:02 -07:00
Ryan Nowak
86f18f5da7
Moving ViewContext to rendering, breaking coupling to RequestContext
2014-03-10 16:15:46 -07:00
Hao Kung
9fbbe0bcc2
Cleanup unneeded diffs in project.json
2014-03-10 15:08:51 -07:00
Hao Kung
7d2855cecb
Cleanup required packages for K
2014-03-10 15:05:50 -07:00
Hao Kung
e40777cc6b
Switch to KRunner add initial DI unit test
2014-03-10 15:00:38 -07:00
dougbu
59eaa8f642
Fix 4 unit test failures
...
- NRE in TypeExtensions.IsCompatibleWith()
- ComplexModelDtoResultTest.Constructor_ThrowsIfValidationNodeIsNull() won't work w/o validation
- BindModel_Error_FormatExceptionsTurnedIntoStringsInModelState() looking for wrong message
- BindModel_Error_FormatExceptionsTurnedIntoStringsInModelState_ErrorNotAddedIfCallbackReturnsNull() a dupe
- Also add [NotNull] attributes in TypeExtensions
2014-03-10 12:27:32 -07:00
Pranav K
123089d5c7
General razor clean up
...
* Change Razor compilation to use ApplicationBasePath to determine the
app root
* Change class name generation to be based on app-relative path.
2014-03-10 11:56:07 -07:00
Ryan Nowak
2731caf476
Fix API breaking change from routing
2014-03-10 10:40:15 -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
David Fowler
e4e665075c
Removed unused interface IMetadataReferenceProvider
2014-03-09 01:39:07 -08:00
David Fowler
34641d21e6
Added code path for rendering html encoded content on K
2014-03-08 23:14:40 -08:00
Chris Ross
65532849f6
Handle unmasking offset data.
2014-03-08 23:01:53 -08:00
David Fowler
282ccd6999
Remove duplicate paths
2014-03-08 21:12:01 -08:00
David Fowler
e62e5a2bef
Simplify how we pick dependencies for razor compilation
2014-03-08 17:15:16 -08:00
David Fowler
bda7dd8d2d
Made razor work with core clr
2014-03-08 15:56:01 -08:00
David Fowler
b482a9e3cb
Made roslyn based compilation of razor files work
...
- Now that services are being flowed through the entire stack
we can nuke the csc service and always use the roslyn based compilation for views
- The RoslynCompilationService is still very much a prototype but it's a good
step to see what other services might may or may not need to flow.
- Removed the PhysicalFileSystem construction from Mvc itself. This will come from
the hosting layer and is newed up temporarily in the PathBasedViewFactory itself.
2014-03-08 15:16:44 -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
ed31f6b019
Added required packages for K
2014-03-08 02:40:21 -08:00
David Fowler
c111258938
Add required references for K to work
2014-03-08 01:48:44 -08:00
David Fowler
5de1ae578d
Updated common
2014-03-08 01:22:35 -08:00
David Fowler
360f81d0a8
Added required packages for K
2014-03-08 01:10:02 -08:00
Chris Ross
9ba9f666bb
Fix continuation frame bug.
2014-03-07 22:25:21 -08:00
Pranav K
574ce6de98
Query and route value provider factories are added to service container
...
multiple times
2014-03-07 15:08:28 -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
Hao Kung
d845ef0b7c
Switch to using DataProtection for Crypto
2014-03-07 14:19:38 -08:00
Hao Kung
56c67d5ef0
Fix project json immutable references
2014-03-07 14:19:37 -08:00
Hao Kung
5128a030da
Port PasswordsHasher, crypto only in Net45
2014-03-07 14:19:36 -08:00
Pranav K
28b7597779
Introducing NotNullAttribute for null argument checks
2014-03-07 14:03:28 -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
10c10ab2e7
Added required packages for K
2014-03-07 02:46:45 -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
David Fowler
eb61728107
Fix webfx compile error.
...
- Assembly.Load(byte[]) has been removed
- Added IAssemblyLoaderEngine type that flows from the host
2014-03-06 22:11:10 -08:00
Levi Broderick
adf2adabc0
Add PBKDF2 support to the data protection library.
2014-03-06 19:42:00 -08:00
Stephen Halter
4d1768ce3c
Use the ServiceDescriber class from the DI project in GetDefaultServices
2014-03-06 17:44:54 -08:00
Yishai Galatzer
bcfccbd105
Remove allow anonymous (will happen as a separate feature)
2014-03-06 17:06:21 -08:00
Yishai Galatzer
1bcd35f5f1
Code cleanup
2014-03-06 17:02:48 -08:00
Yishai Galatzer
7cf40c8a50
CR feedback
2014-03-06 17:02:47 -08:00
Yishai Galatzer
772f833dc9
Action filters & Authorization Filters working
2014-03-06 17:02:45 -08:00
Yishai Galatzer
6fed92695b
Filter execution
2014-03-06 17:01:40 -08:00
Yishai Galatzer
f669c1c00e
Cleanup & Renames
2014-03-06 17:00:47 -08:00
Yishai Galatzer
8c5db4fdfa
Action/ActionResult/ExceptionFilterAttribute(s)
...
AllowAnonymousAttribute
Name cleanup in ReflectionActionDescriptorProvider
2014-03-06 17:00:47 -08:00
Yishai Galatzer
1783a06dc0
Filter discovery
2014-03-06 17:00:46 -08:00
Yishai Galatzer
4d90d590a9
Default filter provider, instantiates and merges all filters pre action invocation.
2014-03-06 17:00:45 -08:00
Yishai Galatzer
4bb66937e3
Action/ActionResult/ExceptionFilterAttribute(s)
...
AllowAnonymousAttribute
Name cleanup in ReflectionActionDescriptorProvider
2014-03-06 17:00:44 -08:00
Yishai Galatzer
457016a6da
Add the actual filters interface signatures,
...
Add the AuthorizationFilterAttribute
2014-03-06 17:00:43 -08:00
Yishai Galatzer
75bccbae21
Filter discovery
2014-03-06 17:00:42 -08:00
Yishai Galatzer
dc6b1b1a4a
Context + ActionDescriptor + IFilter marker
2014-03-06 17:00:41 -08:00
Ryan Nowak
83eb6c4d22
Small bugfix in routing
2014-03-06 16:23:48 -08:00
Hao Kung
edb709ce9d
Undo workaround in Idenitty now that claims is fixed
2014-03-06 16:23:06 -08:00
Chris Ross
1bd9bf1714
Implement continuation frames.
2014-03-06 13:50:04 -08:00
Ryan Nowak
318c19b2f9
Issue #39 move init code into controller factory
2014-03-06 12:44:36 -08:00
Chris Ross
1d5b4582f1
Cleanup, unmasking.
2014-03-06 12:32:46 -08:00
Ryan Nowak
9d0cea17dd
Changes due to changes in routing take 2
2014-03-06 12:26:09 -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
Hao Kung
1ad07a38d7
Fix build by adding System.Runtime 45 dependencies
2014-03-06 10:13:29 -08:00
Ryan Nowak
905e84ab0a
Changes in WebFx for compatibility with routing
2014-03-05 20:51:41 -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
Pranav K
914d8e8a3b
Updating DI to use ServiceDescriptors
...
Fixes #25
2014-03-05 15:59:33 -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
N. Taylor Mullen
6ea8d7721b
Re-applied code review changes for formatting fix.
...
The previous fix was accidentally overridden. Also changed how we
render chunk block's children. New way avoids casts and removes logic
from base.
2014-03-05 11:24:06 -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
Pranav K
e87f8c372c
Consume ModelBinding from Mvc
...
* Modify ReflectedActionInvoker to model bind parameters
* Introduce IBodyReader for reading request bodies
* Introduce types for per-action-context specific binders, value providers
and body readers
2014-03-05 10:13:52 -08:00
Chris Ross
7004026b5e
Implement Close.
2014-03-05 09:28:09 -08:00
David Fowler
05e0d5cabb
Updated to newer version of roslyn
2014-03-04 22:59:48 -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
1553c674a4
Back to using System.Security.Claims namespace
2014-03-04 15:43:43 -08:00
Hao Kung
bc756706aa
Add empty crypto and fix user validator compilation
2014-03-04 13:02:56 -08:00
N. Taylor Mullen
549e36b803
Fix CodeGeneration process to format correctly within cshtml.
...
Added newlines inbetween ending line pragma's and code. Without the extra line the document does not format correctly. Separated expression and statement padding functionality. Statements need to have 1 less padding to account for the transition. Changed how runtime and design time code generates to enable accurate debugging experiences in runtime and functional formatting experiences during design time.
2014-03-04 12:06:00 -08:00
Hao Kung
625cd512e6
Update bootstrap package version back to 3.0.0
2014-03-04 10:22:25 -08:00
David Fowler
710b9ad4ed
Use csc compilation to avoid temporary churn in host services
2014-03-03 23:25:24 -08:00
Hao Kung
b13d26cab6
Flesh out implementation, add InMemoryTests
...
- Implement RoleManager
- Replace IIdentityValidator with IUser/Role/Password Validator
- Add test project.json and working tests for InMemoryUserStore
2014-03-03 17:25:39 -08:00
Hao Kung
169ffaa062
Account controller using Kidentity
...
- Uncomment account controller and switch to KIdentity
2014-03-03 15:28:24 -08:00
Hao Kung
06f9b90aea
Initial in memory implementation
...
InMemory implementation for Identity
2014-03-03 13:59:23 -08:00
Pranav K
48738b91f4
Updating resx designer file to use updated format
2014-03-03 12:05:00 -08:00
Yishai Galatzer
2688029682
Formatting
2014-03-03 00:46:03 -08:00
Yishai Galatzer
c321e40d44
Rename TypeMethodXXX to ReflectedXXX
2014-03-03 00:39:12 -08:00
Yishai Galatzer
2f8c4b213a
Rename MVC -> MVC.Core requires project.json changes
2014-03-02 23:36:15 -08:00
Yishai Galatzer
6244d55e1f
Rename MVC -> MVC.Core, MVC.Startup -> MVC
2014-03-02 23:16:18 -08:00
David Fowler
346f02e37c
First stab Roslyn based compilation service for razor pages
...
- Flow the host service provider to MvcServices
- Use assembly neutral interfaces to access host services
- Added RoslynCompilationService to Microsoft.AspNet.Mvc.Razor
- Modified self host sample as helios needs to be updated to flow more services
2014-03-02 01:14:01 -08:00
Ryan Nowak
5c07c6a07b
CR feedback
2014-02-28 12:56:28 -08:00
Ryan Nowak
803f447686
Use INestedProvider for ADP and AIP
2014-02-28 12:56:26 -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
d920003194
Introduce FormValueProviderFactory to expose form data as a value provider
2014-02-28 11:05:39 -08:00
Hao Kung
afa12ea595
Start using K Claims
...
Remove #if defs and reenable claims referencing aspnet/Claims version in
k10
2014-02-27 16:56:49 -08:00
Pranav K
04c7b50726
Removing IsFromBody property from ModelMetadata
2014-02-26 13:40:35 -08:00
N. Taylor Mullen
9f05cf8fbb
Write helper method template functions with no indent.
...
Also removed capturing of the LineMapping (wasn't being used) for the CSharpHelperVisitor.
2014-02-26 11:12:02 -08:00
N. Taylor Mullen
49ffb5ae81
Map semicolon's in using statements.
...
This allows for users to write "@using System;" and still have proper intellisense and mapping. Also removed some legacy code that I came across when running tests.
2014-02-25 14:14:02 -08:00
Pranav K
09cc1964e7
Adding GetFormAsync on HttpRequest to read form data
2014-02-25 12:52:00 -08:00
Pranav K
9915b1c767
Reintroduce WriteAttribute methods on RazorView type
2014-02-24 19:55:48 -08:00
Pranav K
f1183f57af
* Remove unused method of IModelMetadataProvider
...
* Fix warning in CollectionModelBinder
2014-02-24 17:59:29 -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
Pranav K
b6c78de4ea
Reintroduce model binding
2014-02-23 15:23:58 -08:00
Pranav K
906e68e72e
Adding workaround to compilation for web host
2014-02-21 08:09:03 -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
9d056167e8
Overload Resolution Skeleton
2014-02-20 11:37:33 -08:00
Hao Kung
27027b917c
Split IdentityMessage into its own file
2014-02-19 16:27:47 -08:00
Hao Kung
aa4787cc67
Initial Identity Core port, with Crypto/Claims #if net45 commented out
2014-02-19 15:36:18 -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
Nick Guerrera
2bdbd49966
Remove #if NET45 for GetUnicodeCategory and just use CharUnicodeInfo everywhere.
...
.NET FX Team will not be adding Char.GetUnicodeCategory because it breaks layering. We cannot have a dependency form System.Runtime.dll to System.Globalization.dll.
2014-02-17 23:28:52 -08:00
Yishai Galatzer
941a12daea
Action selection based on action descriptors
2014-02-17 22:42:02 -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
Yishai Galatzer
1d40372cc3
Renames to prepare for action selection PR
2014-02-16 11:10:21 -08:00
Chris Ross
742db6ad65
Change to the new abstractions.
2014-02-15 15:38:17 -08:00
Yishai Galatzer
90daa2587d
Minor cleanup
2014-02-15 10:21:27 -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
N. Taylor Mullen
f43a17369c
Transition tests to use new CodeTree.
...
Previously they would use CodeDOM dependent concepts.
2014-02-13 15:03:19 -08:00
N. Taylor Mullen
da192d7c96
Fix scoping spacing for pragmas and curly braces.
...
If the writer did not write anything it would throw when attempting to do .Last().
2014-02-13 14:32:04 -08:00
N. Taylor Mullen
cadc2fc67e
Add comparison methods to mapping classes.
...
This involved adding Equals and == methods to LineMapping.cs and MappingLocation.cs.
2014-02-13 14:32:02 -08:00
N. Taylor Mullen
fa342287ad
Move semicolon out from pragma for usings.
2014-02-13 14:32:00 -08:00
N. Taylor Mullen
2ff6c12347
Move helper function accessor code outside pragma.
2014-02-13 14:31:58 -08:00
N. Taylor Mullen
dcf35ca20b
Add padding support to the functions directive.
...
Exposed the CreateCodeMapping method on the CSharpCodeVisitor.
2014-02-13 14:31:38 -08:00
Pranav K
5a22d9b52c
Restore @model support in RazorHost
2014-02-13 12:48:02 -08:00
Pranav K
3afb31b78b
Modify SetBaseTYpeCodeGenerator to use value from BaseType instead of
...
parsed content
2014-02-13 12:45: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
Ryan Nowak
4a801b6c7a
integrating routing with WebFX
2014-02-12 18:48:17 -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
N. Taylor Mullen
8db45f7564
Add user-based padding support.
...
Added a CSharpPaddingBuilder based on the existing
CodeGeneratorPaddingHelper to allow accurate padding within the generated
C# files. Also created tests based on the existing PaddingTest tests to
verify padding functionality.
2014-02-12 12:07:39 -08:00
Pranav K
63e55ce776
Updating resx strings to use tt format
2014-02-12 10:11:23 -08:00
Yishai Galatzer
1f9d4969a7
CR Feedback
2014-02-12 09:15:16 -08:00
Yishai Galatzer
cc3fec2f76
Bring back simple POCO controller
...
+ HttpContext temporary injection through property
+ 404 when action is not found
2014-02-11 17:25:30 -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
Yishai Galatzer
87379400cf
rename ControllerAssemblyProvider to IControllerAssemblyProvider
2014-02-10 17:12:41 -08:00
Yishai Galatzer
400240673b
Update to CR feedback
2014-02-10 13:29:46 -08:00
Yishai Galatzer
a725e4c9b5
Update to support 404
...
Renamed actiondescriptor to routecontext, because action selection didn't happen yet.
Need to add actiondescriptors back and modify RazorViewEngine to use the right thing.
2014-02-10 13:24:45 -08:00
Yishai Galatzer
b6a0969c1c
Support per process caching of controller discovery
...
Scan only relevant (non skipped) assemblies
FinalizeSetup point, to make "stuff" immutable
Support controllers under any namespace
support customizing controller discovery
support customizing skipped assemblies
support customizing multiple controllers with the same name under different namespaces and assemblies
support controller ambiguity detection
2014-02-10 13:24:44 -08:00
N. Taylor Mullen
4cd2cce360
Fix build.
...
Removed Equals from SetModelTypeCodeGenerator and removed accidentally
committed file. The Equals method caused a warning without a corresponding
GetHashCode().
2014-02-10 12:30:12 -08:00
N. Taylor Mullen
226d632794
Re-enable the model keyword for Mvc Razor.
2014-02-10 12:00:15 -08:00
N. Taylor Mullen
ff80c86e0c
Fixed common resources resx.
2014-02-10 11:57:49 -08:00
N. Taylor Mullen
d85927166b
Remove unneeded chunk data.
...
Instead lets keep utilizing the Context's state to properly generate a C# file.
2014-02-10 11:49:49 -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
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