Commit Graph

40929 Commits

Author SHA1 Message Date
Eilon Lipton b63d1b6187 Create CONTRIBUTING.md 2015-09-17 09:36:53 -07:00
Eilon Lipton 408759ec99 Update LICENSE.txt 2015-09-17 09:36:36 -07:00
Nate McMaster c2db08e3a7 Update build-template 2015-09-17 09:21:08 -07:00
Eilon Lipton 62caf09ac4 Create README.md 2015-09-17 08:44:43 -07:00
Eilon Lipton dbd4aa98fc Create CONTRIBUTING.md 2015-09-17 08:39:00 -07:00
Eilon Lipton eb9383fe40 Update LICENSE.txt 2015-09-17 08:38:38 -07:00
Ryan Nowak ef730790d4 Fix tests broken by renames 2015-09-17 07:40:15 -07:00
Stephen Halter 6f8c040cfe Fix false positive in Standards Police warning warning SP1004
- "warning SP1004: namespaces not alphabetized"
- Any using statement can come after "using System;"
2015-09-17 00:51:43 -07:00
Ryan Nowak abd5303bb4 React to MVC renames 2015-09-17 00:17:15 -07:00
Ryan Nowak 11942dd48f React to MVC renames 2015-09-17 00:04:21 -07:00
Ryan Nowak 538cd9c191 Move less-commonly used types out of .Rendering 2015-09-16 23:52:29 -07:00
Pranav K 33a0f7a0db Replace NotNullAttribute with thrown exceptions 2015-09-16 22:06:25 -07:00
Pranav K 0376550f2d Replace SymbolLookupCache with comparing FullNames for symbols. 2015-09-16 21:43:51 -07:00
Ryan Nowak 046cb976b3 Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
Stephen Halter 47323a88e1 Surface errors from Listener.StartAsync better
If CreateListenSocket fails, surface the original error instead of throwing a
NullReferenceException from Listener.Dispose().

#185
2015-09-16 18:19:01 -07:00
Stephen Halter 2d01f2752b Catch and log uv_accept errors
- This is also what is done by node.js
- "tcp, pipe: don't assert on uv_accept() errors (Ben Noordhuis)"

0685707bc6
2015-09-16 18:18:58 -07:00
Stephen Halter f14af1f409 Don't swallow too many exceptions
- Swallowing too many exceptions can end up hiding issues in
  Kestrel itself. It's better to let the process die.
- If we want to handle certain exceptions we should be as
  specific as possible with our try/catch blocks.
2015-09-16 18:18:55 -07:00
Pranav K 1c4614c219 Avoid allocating strings in DefaultViewLocationCache
Fixes #3135
2015-09-16 17:28:40 -07:00
Ryan Nowak 47866ac5db React to renames from Auth 2015-09-16 17:21:01 -07:00
Pranav K 00075520b4 Razor CompilerCache allocates too much in NormalizePath
Fixes #3035
2015-09-16 16:55:51 -07:00
Ryan Nowak 3382b82e5e Fix breaking changes 2015-09-16 16:46:18 -07:00
Ryan Nowak 9a15b54d30 Flow IHtmlContent through to the razor buffer 2015-09-16 16:17:40 -07:00
David Fowler 82f58d5f16 CR Feedback 2015-09-16 15:01:22 -07:00
David Fowler 9b061ececb Dispose the service provider on app shutdown
- Added a unit test

#322
2015-09-16 14:52:54 -07:00
Chris R 1c0768fb71 #372 Flow mutable event state.
#358 Add a UserInformationReceived event.
#327 Add AuthenticationCompleted event.
#340 Split the Redirect event for Authentication and SignOut.
Rename OnAuthorizationCodeRedeemed to OnTokenResponseReceived.
Move IdTokenReceived to AuthorizationResponseReceived.
Rename IdTokenValidated to AuthenticationValidated.
2015-09-16 14:31:36 -07:00
Brice Lambson b271cdf91d Update EF commands 2015-09-16 14:03:45 -07:00
Chris R 92d5e4ce77 Fix test for CoreClr. 2015-09-16 11:28:16 -07:00
Chris R 6758010e1a #353,#354 Add telemetry for begin/end request and unhandled exceptions. 2015-09-16 11:01:29 -07:00
Ryan Nowak a707311d9e Fix #3087 - use IHtmlContentBuilder in TagBuilder
Improves authoring experience when using TagBuilder by taking advantage of
IHtmlContentBuilder an its extension methods.

TagBuilder.InnerHtml is no longer settable.
2015-09-16 10:03:03 -07:00
Ryan Nowak e56c3806b6 Add tests for HtmlContentBuilderExtensions 2015-09-15 23:45:44 -07:00
Jason Loeffler f0792f2b2e Remove Shouldly and Moq from Microsoft.AspNet.Authorization.Tests. Enable dnxcore50 in this project. 2015-09-15 23:11:11 -05:00
Ryan Nowak 7ef2242805 Extension methods for IHtmlContentBuilder
Resolves a bunch of duplication between TagHelperContent and
BufferedHtmlContent, plus adds a few more convenience overloads we don't
have in one of the two places.
2015-09-15 16:50:01 -07:00
Nate McMaster e3458ceb1b Add libuv to travis ui build script 2015-09-15 16:28:17 -07:00
Nate McMaster d162fff906 Temporary workaround for https://github.com/aspnet/EntityFramework/issues/3144 2015-09-15 15:33:02 -07:00
Daniel Lo Nigro bc8cf1f7b6 Update xmldoc for SetNormalizedUserNameAsync
The parameter name specified in the xmldoc didn't match the actual parameter name.
2015-09-15 15:20:02 -07:00
Hao Kung eb4aaa5800 Fix PR 2015-09-15 15:11:09 -07:00
Kiran Challa 5008e2743d Removed style cop related shade files 2015-09-15 14:19:00 -07:00
Hisham Bin Ateya a2cbaa0666 Using 'nameof' operator instead of magic string 2015-09-15 23:25:37 +03:00
Glenn Condron 1d06f1f935 Merge pull request #925 from mariusGundersen/patch-1
Removed dot from dnx run command
2015-09-15 12:49:15 -07:00
Chris R 2e225b0db6 Hosting#331 Add IServerAddressesFeature. 2015-09-15 12:47:18 -07:00
Jason Loeffler b25d4b537f Removed references to Shouldly 2015-09-15 14:22:38 -05:00
Doug Bunting 22952e1806 Add `restoreDir` parameter in `_k-restore.shade`
- enables use of this command where it's currently overridden
- in turn, this means `--quiet` would be honoured in those `makefile.shade` files

For example can use this hook to shut DNX build up a bit
- `makefile.shade` there calls `dnu restore` directly and ignores `--quiet`
2015-09-15 11:58:48 -07:00
Nate McMaster 8e7fca953c React to changes in EF. https://github.com/aspnet/EntityFramework/pull/3108 2015-09-15 11:43:00 -07:00
Doug Bunting d03a851ab3 Use `MvcTextFixture` as much as possible
- #3066
  - reduce `TestServer` -> `PhysicalFileProvider` -> `FileSystemWatcher` count enough to run with Core CLR on Linux
- remove use of `HttpClient.DefaultRequestHeaders`; any client change affects other tests
- remove use of `RequestBuilder` class; creates a per-test `HttpClient` and requires the `TestServer`
- updated a few expectations because `CommonTestEncoder` does JavaScript a bit differently
  - "JavaScriptEncode[[...]]" -> "JavaScriptStringEncode[[...]]"
- side benefit: xUnit reports functional tests execute for only ~12.4s; was >30s before this change

Infrastructure: Enhance `MvcTestFixture`
- handle `ConfigureServices()` methods that are not `void`
- handle `Configure(IApplicationBuilder, ILoggerFactory)`
- ensure server is initialized with consistent `CurrentCulture` and `CurrentUICulture`
- add `FilteredDefaultAssemblyProviderFixture<TStartup>` and `MvcEncodedTestFixture<TStartup>`
  - add `MvcTextFixture.AddAdditionalServices()` extension point supporting these

- do not expose the `TestServer`; an anti-pattern for tests to manipulate the server
- update class names to match containing files
- use existing `TestApplicationEnvironment`
  - apply some `MvcTestFixture` improvements to the shared `TestApplicationEnvironment` class
- remove unused methods from `TestHelper`

nits:
- touched-up some leftover `_app` &c declarations to be more explicit and minimize `using`s
- moved statements into correct sections of methods in `RoutingTests`
- removed `TestLoggerFactory` and related classes from `TagHelperSampleTest`
2015-09-15 10:18:27 -07:00
Chris R ee2d263223 #434 Remove the nonce cache. 2015-09-15 09:13:26 -07:00
Kirthi Krishnamraju eefe518ac2 Add LocalizationOptions to specify resources location 2015-09-14 20:34:43 -07:00
Hisham Bin Ateya a7b1b1e4ec Remove unnecessary usings from Microsoft.Framework.Localization.Tests 2015-09-14 20:29:13 -07:00
Hisham Bin Ateya 56259c0564 Add missing 'Assert' in GetFallbackLanguage_ReturnsFirstNonNullCultureFromSupportedCultureList 2015-09-14 20:25:45 -07:00
Chris R ce06872b84 Hosting#331 Add IServerAddressesFeature. 2015-09-14 16:58:00 -07:00
Kirthi Krishnamraju a5a264d1ad fix #3: Add localized resources to the sample 2015-09-14 16:46:43 -07:00