Steve Sanderson
1c5acfbdcc
Temporarily rename 'Json' to 'JsonUtil' to avoid name clash
2018-02-26 12:06:28 +00:00
Steve Sanderson
1b0b5c61fe
Add proper JSON-fetching example to StandaloneApp
2018-02-26 11:57:39 +00:00
Steve Sanderson
314b5c339c
Add public JSON APIs to Microsoft.AspNetCore.Blazor. Swap implementation from MiniJSON to SimpleJson
...
MiniJSON is very small but doesn't deal with strongly-typed
deserialization by default (we can add it, but that's less
battle-tested). Also it has to allocate extra IDictionary versions of
everything before we map it to specific .NET types.
Also tried LitJSON, but has some correctness issues, e.g.,
https://github.com/LitJSON/litjson/issues/43
Also tried Json.NET but it's > 600KB
2018-02-26 11:35:27 +00:00
Steve Sanderson
69c39937b3
Update StandaloneApp's Program.cs to make it more obvious how to configure DI services
2018-02-26 10:15:42 +00:00
ASP.NET CI
732c96dd02
Updating submodule(s)
...
KestrelHttpServer => 83bf2375b3
[auto-updated: submodules]
2018-02-25 17:14:14 -08:00
Justin Wyer
83bf2375b3
#2035 Do not await OnCompleted handlers before sending the Response ( #2324 )
2018-02-25 18:10:04 -07:00
ASP.NET CI
fc47d9468f
Updating submodule(s)
...
KestrelHttpServer => 06945ba81e
MvcPrecompilation => 3ce839cb26
Razor => b538ceba93
Scaffolding => e59846174f55d5528c4b37f0b0be072126dce3f3
SignalR => 0e4731e480
[auto-updated: submodules]
2018-02-25 06:26:12 -08:00
Pranav K
a75c51befa
Remove Microsoft.VisualStudio.Web.CodeGeneration.Tools artifact
2018-02-25 06:22:26 -08:00
Mikael Mengistu
0e4731e480
Expose Transport and Application Max Buffer Sizes ( #1473 )
2018-02-25 08:47:14 +00:00
Stephen Halter
06945ba81e
Include exceptions when displaying test logs ( #2346 )
2018-02-24 16:51:57 -08:00
Pranav K
c4304ea723
Add dotnet-aspnet-codegenerator to artifacts.props
2018-02-24 14:19:35 -08:00
Stephen Halter
0134e56909
Include exceptions when displaying test logs ( #2344 )
2018-02-23 22:22:00 -08:00
Pranav K
3ce839cb26
Update to latest Sdk
...
* Re-enable skipped Publish_UsesRazorSDK
* Clean up project files
Fixes #241
2018-02-23 18:34:32 -08:00
N. Taylor Mullen
b538ceba93
Change final code documents to not contain non-existent imports.
...
- Existent imports are imports that have content that contribute to the processing of a Razor document. Prior to this we had a legacy expectation that code documents had empty markers in them for all of their import locations. This proved troublesome when cross-referencing files that had file paths and were supposed to be existent but weren't in metadata. Now that we have a project engine with a de-coupled import feature we can rely on the import feature for finding all locations of important files and then strip out any non-existent items.
2018-02-23 16:30:22 -08:00
ASP.NET CI
2c92564703
Updating BuildTools from 2.1.0-preview2-15711 to 2.1.0-preview2-15721
...
[auto-updated: buildtools]
2018-02-23 15:47:33 -08:00
ASP.NET CI
ba95eea1b4
Updating submodule(s)
...
Configuration => dd33ad364a74936923edf25286cbff0a08232786
DotNetTools => 590c621c6f
EntityFrameworkCore => bfe07c526fd59be235439825a37d9fe9817c6940
HttpAbstractions => b85ed9d5cd
HttpClientFactory => 4ca695e0dad12ffda58fcc65781d2e764e178aae
Identity => 0ee3a5d4f4
IISIntegration => dc62b9ba38
KestrelHttpServer => de7e2a2573
Razor => 64c86634a8
ResponseCaching => c29531f2eb
SignalR => f7da0edcb2
Templating => 8cac91b15e
[auto-updated: submodules]
2018-02-23 15:47:24 -08:00
Pranav K
0ee3a5d4f4
React to Razor Sdk changes
2018-02-23 15:39:59 -08:00
Steve Sanderson
c0bf73234c
Tweak (to force rebuild, since Travis just tried to build a branch that was already deleted)
2018-02-23 22:42:10 +00:00
Steve Sanderson
8590f6e7a5
Remainder of initial HttpClient features plus E2E tests
2018-02-23 22:31:26 +00:00
Ben Adams
de7e2a2573
Use enum for method rather than string compares ( #2294 )
2018-02-23 14:29:42 -08:00
Jass Bagga
298a1e2a78
Add AllowAnonymous for some Identity razor pages ( #1644 )
...
Addresses #1617
2018-02-23 13:57:37 -08:00
Ryan Brandenburg
f7da0edcb2
Skip ConnectionCanSendAndReceiveMessages
2018-02-23 11:45:24 -08:00
Nikita Tsukanov
39951e892e
Don't throw in HttpRequestStream.Flush ( #2342 )
...
Because read-only streams apparently can have Flush semantics and this behavior is expected by some of built-in stream wrappers (e. g. CryptoStream)
https://github.com/dotnet/corefx/pull/27327#pullrequestreview-98384813
https://github.com/aspnet/KestrelHttpServer/issues/2341
2018-02-23 09:51:09 -08:00
Ben Adams
6728e756b7
Sanitize and centralize exception throws ( #2293 )
...
* Sanitize and centralize exception throws
2018-02-23 09:24:20 -08:00
Steve Sanderson
ea3a18af25
Add basic support for onchange
2018-02-23 14:02:55 +00:00
Steve Sanderson
88cc2caf45
Infrastructure for E2E tests where the app makes requests to an API server
2018-02-23 13:28:58 +00:00
Steve Sanderson
ea6b6bcd19
Add an example API server project that can be used in E2E tests
2018-02-23 13:07:49 +00:00
Steve Sanderson
423ad85a04
Implement OnInit/OnInitAsync and use it in sample HTTP request
2018-02-23 12:47:02 +00:00
Steve Sanderson
891f2a14d0
Basic implementation of temporary HttpClient. Currently only supports GET requests and doesn't return HTTP headers.
2018-02-23 12:29:53 +00:00
Steve Sanderson
8e57261167
In BrowserUriHelper, change URI caching logic to be more defensive in case OnLocationChanged isn't being used
2018-02-23 11:05:29 +00:00
Steve Sanderson
f684203721
Rename DefaultBrowserServiceProvider->BrowserServiceProvider for consistency
2018-02-23 10:50:35 +00:00
Steve Sanderson
0bb32ad628
Move BrowserRouter -> Router in Microsoft.AspNetCore.Blazor now it has no browser-specific aspects
2018-02-23 10:49:03 +00:00
Steve Sanderson
eab10dcf83
Move NavLink component into Microsoft.AspNetCore.Blazor
2018-02-23 10:43:16 +00:00
Steve Sanderson
bbe00753f4
Workaround AppVeyor failing to install Chrome
2018-02-23 10:38:52 +00:00
Steve Sanderson
82bcf9172a
Convert the static UriHelper into a service, IUriHelper, and inject where needed
2018-02-23 10:35:28 +00:00
Steve Sanderson
68f6ede3a7
Simplify UriHelper by making EnableNavigationInteception automatic
2018-02-23 09:59:56 +00:00
Steve Sanderson
e1aab02228
Add name/description values for InjectDirective
2018-02-23 09:32:26 +00:00
Steve Sanderson
8ff4cee323
Make ComponentFactory thread-safe
2018-02-23 09:32:26 +00:00
Steve Sanderson
c408045e31
In RazorCompiler, support @inject directive
2018-02-23 09:32:26 +00:00
Steve Sanderson
3f9d358004
Make ComponentFactory throw if you try to use [Inject] with a property that has no setter (otherwise it could be confusing)
2018-02-23 09:32:26 +00:00
Steve Sanderson
b4a3c852c5
Implement DefaultBrowserServiceProvider using Microsoft.Extensions.DependencyInjection.ServiceCollection
2018-02-23 09:32:26 +00:00
Steve Sanderson
e524994734
Make ComponentFactory do all the reflection up-front and cache the resulting delegates
2018-02-23 09:32:26 +00:00
Steve Sanderson
ceacd489aa
Simplistic implementation of property injection
2018-02-23 09:32:26 +00:00
Steve Sanderson
ce10e6fa19
In preparation for DI, give every Renderer an IServiceProvider
2018-02-23 09:32:26 +00:00
Andrew Stanton-Nurse
6a2d41cc9f
Fix #924 by introducing HubDispatcher abstraction ( #1479 )
2018-02-22 20:59:34 -08:00
Ajay Bhargav Baaskaran
64c86634a8
Added a test to verify incremental TagHelper discovery
2018-02-22 17:15:58 -08:00
Artak Mkrtchyan
1796abcbcd
Updated the test TagHelperBlockRewriteTest class
2018-02-22 17:07:52 -08:00
Artak Mkrtchyan
0c8dddcc40
Added the AllowHtmlCommentsInTagHelpers feature flag to control behavior of having comments in TagHelpers
2018-02-22 17:05:13 -08:00
Ben Adams
6252ffd86a
Flatten exception handling ( #2313 )
...
3 nested try blocks with 3 finallies in same function O_o
2018-02-22 16:46:18 -08:00
Ben Adams
c57784447e
Speed up TryGetAsciiString ( #1973 )
...
* Widen
* Remove TryGetAsciiStringVectorCheckShifts
* Add Span version to benchmarks
2018-02-22 16:45:31 -08:00