Commit Graph

40221 Commits

Author SHA1 Message Date
Ryan Nowak 8485e2ea10 Add support for Action event handlers
This change adds `Action` to the set of types that have an overload on
RenderTreeBuilder. Additionally, we special case `Action` in the runtime
because passing the event args via DynamicInvoke() would throw.

Finally, reverted some of the clutter introduced by the first pass of
the event handler feature.
2018-04-11 07:36:05 -07:00
Kiran Challa 62272ad56a Round off file result's LastModifiedDate to whole seconds for correct comparison with http header dates
[Fixes #7572] PhysicalFileResult does not respond 304 Not Modified
2018-04-11 06:43:50 -07:00
Ryan Nowak 6d3838ef9d [WIP] Update templates
This is work in progress right now. We'll need to update again once
there's a build with the Action fix in it, and again to point to the
final package versions.

Just getting things staged ahead of time.
2018-04-11 14:25:54 +01:00
Steve Sanderson e727cf2419 Rename "blazor content" project to "blazor library". Fixes #539 2018-04-11 14:26:29 +01:00
Steve Sanderson 2478c164b5 Update Mono to 078d5147836 (#543)
* Update Mono to 078d5147836

* Update driver.c to match updated Mono version

* Rebuild Mono binaries

* Update dependency resolution baseline to match updated Mono BCL

* Add E2E test for new RuntimeInformation values
2018-04-11 14:00:03 +01:00
Steve Sanderson 3d787d7988 Auto rebuild when reloading after a file change. 2018-04-11 10:51:44 +01:00
James Newton-King 12b69a0fdb
Refactor HttpOptions in client (#1942)
- Rename HttpOptions to HttpConfigurationOptions
- Remove HttpConfigurationOptions from SignalR client project
- Updated client HttpConnection ctors
2018-04-11 20:20:04 +12:00
Justin Kotalik 182209cb63
Add ANCMV1 package (#1050) 2018-04-10 23:15:23 -07:00
Justin Kotalik 589a672521
Merge pull request #768 from aspnet/jkotalik/ancmCurrent
Port ANCM current to github.
2018-04-10 23:11:16 -07:00
Justin Kotalik e2fbff2bd5 Feedback 2018-04-10 23:00:18 -07:00
Luke Latham 945995199c Template/sample updates 2018-04-10 22:41:07 -07:00
James Newton-King b30c2fecbf
SSE formatting refactor (#1916) 2018-04-11 17:13:15 +12:00
Mikael Mengistu 83821a028d
Rename HubEndPointTestUtils folder (#1943) 2018-04-11 04:05:28 +00:00
Ryan Nowak ed2dbbd2f8 Update to preview2 release versions 2018-04-10 18:14:40 -07:00
James Newton-King c83baf2b76
Remove params from message ctors (#1931) 2018-04-11 12:11:13 +12:00
Mikael Mengistu 13f7981010
Rename Callback to Configure in UseConnections (#1939) 2018-04-11 00:08:22 +00:00
Ryan Nowak 15ba614e6f Remove old workaround @onclick and @bind
This change removes support for the old syntax used for event handlers
and two-way binding.

See the relevant issues for details on the new features and
improvements:

bind https://github.com/aspnet/Blazor/issues/409
event handlers https://github.com/aspnet/Blazor/issues/503

Along with this change we've removed a few additional things Blazor
could do that aren't part of Razor's usual syntax.

----

The features that was used to make something like:
```
<button @onclick(...) />
```

is an expression that's embedded in a an element's attribute. This
feature might be useful in the future if we want to support 'splatting'
arbitrary attributes into a tag, but the runtime support for this isn't
accessible outside the Blazor core.

----

The features that implement:
```
<button onclick=@{ } />
```

have been removed in favor of a better design for lambdas, method group
conversions and other things for event handler attributes.

use `<button onclick=@(x => ...} />` instead.

We think is a better approach in general, because we want the app
developer to write and see the parameter list.

----

Both syntactic features that have been removed have dedicated error
messages in the compiler. If you're porting old code it should help you
figure out what to do.
2018-04-10 16:54:15 -07:00
Mikael Mengistu e2169ceda6
Connect to Redis asynchronously (#1922) 2018-04-10 23:48:11 +00:00
Andrew Stanton-Nurse 71be5bf637
fix logging browser tests (#1940) 2018-04-10 16:45:17 -07:00
Ryan Nowak 05c166eafa Fix failing test
This is failing due to Steve and I's changes passing in the night.
2018-04-10 16:35:37 -07:00
Andrew Stanton-Nurse 3136e5b05f
fix #1923 by avoiding extra build step (#1924) 2018-04-10 16:26:37 -07:00
Ryan Brandenburg 49acd16712 Updating external dependencies 2018-04-10 15:59:31 -07:00
Justin Kotalik 7859d40299 Merge branch 'dev' into jkotalik/ancmCurrent 2018-04-10 15:40:45 -07:00
Justin Kotalik 46efcd9332 Move srwWrapper to right location 2018-04-10 14:43:05 -07:00
Justin Kotalik 5c91dbe062 Get tests working 2018-04-10 14:21:23 -07:00
Justin Kotalik b978df455c Create a separate nuget package for ANCMV1 2018-04-10 14:21:23 -07:00
Justin Kotalik da513bd8d8 Get build.cmd working and cleanup ignored files. 2018-04-10 14:21:00 -07:00
Justin Kotalik df9efa0770 Code changes to get ANCM current working on github 2018-04-10 14:19:53 -07:00
Justin Kotalik b594130020 Adds source code from VSTS 2018-04-10 14:19:53 -07:00
Pavel Krymets 157e7f4fdd Creates two separate projects for ANCM V1 and V2. 2018-04-10 14:19:32 -07:00
ASP.NET CI c4986b0f92 Updating submodule(s)
EntityFrameworkCore => da3bffecca207a90e7dacc498e48da983986ae86
HttpClientFactory => 60a23380a354ebaf27c8cd3505e745bd8b7f1541
IISIntegration => df383aa0f3

[auto-updated: submodules]
2018-04-10 14:18:34 -07:00
Pavel Krymets df383aa0f3
Merge pull request #752 from aspnet/pakrym/cpp2
Explore usage of std::mutex and CHandle
2018-04-10 13:54:46 -07:00
ASP.NET CI d779669554 Updating submodule(s)
SignalR => 5fa2892561

[auto-updated: submodules]
2018-04-10 20:40:34 +00:00
Ryan Nowak 3971e164d9 Update dependencies.props
Update polly dependencies
2018-04-10 13:34:58 -07:00
David Fowler 5fa2892561
Change the HubSample to reconnect to the server (#1933)
- Modified the sample to test our reconnect patterns
- Add IConnectionInherentKeepAliveFeature to the tcp connection impl since Kestrel doesn't implement the heartbeat (yet).
2018-04-10 12:44:30 -07:00
ASP.NET CI a35b88bc04 Updating submodule(s)
Caching => b9a3a2d20030a1b52f51e60aee723df08a4265b1
HttpSysServer => bec259f976
IISIntegration => 6629236a0e
KestrelHttpServer => 7e5104573e
Templating => da32f45f58

[auto-updated: submodules]
2018-04-10 12:29:48 -07:00
David Fowler 5aafb9b8be
Remove ITransport dependency on IConnection (#1934) 2018-04-10 12:29:16 -07:00
FabianMeiswinkel bec259f976 #364 - Expose HTTP_503_RESPONSE_VERBOSITY option (#447) 2018-04-10 12:08:33 -07:00
Pavel Krymets 6629236a0e
Merge pull request #767 from aspnet/pakrym/perf
Improve performance
2018-04-10 12:07:26 -07:00
Jass Bagga da32f45f58
Do not set sslPort if HTTPS not configured (#458)
Addresses #457
2018-04-10 12:02:10 -07:00
Nate McMaster 2657a17a63
Use an older version of microsoft/dotnet which still has libunwind.so in it 2018-04-10 11:57:42 -07:00
Pavel Krymets d63e8c5558 CPP 2018-04-10 11:04:34 -07:00
ASP.NET CI f072c4f3c6 Updating submodule(s)
Razor => 5504374125
StaticFiles => 6b18dea711

[auto-updated: submodules]
2018-04-10 17:44:48 +00:00
Ryan Brandenburg 7e5104573e Skip flaky tests 2018-04-10 10:44:18 -07:00
Ajay Bhargav Baaskaran 5504374125 Preserve directive node diagnostics in document node 2018-04-10 10:24:21 -07:00
Ryan Brandenburg 14cc048102 Fix npm command 2018-04-10 10:17:52 -07:00
Steve Sanderson bd2c8a09ef Improve JS-side event handling code. Fixes #433 2018-04-10 18:15:22 +01:00
Nate McMaster 8e261175d2
Generate a .csv file containing tag information 2018-04-10 10:03:31 -07:00
Nate McMaster f762d5dc61
Merge branch 'release/2.1' into dev 2018-04-10 09:53:47 -07:00
Nate McMaster c5db8370d0
chmod +x .sh scripts 2018-04-10 09:42:10 -07:00