Commit Graph

19078 Commits

Author SHA1 Message Date
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