Commit Graph

40221 Commits

Author SHA1 Message Date
dotnet-maestro-bot 78e4d4383c Updating external dependencies to '20180406-05-1567334' (release/2.1) (#1044) 2018-04-10 09:12:18 -07:00
Pavel Krymets ee2e46a614 What about now? 2018-04-10 09:08:13 -07:00
ASP.NET CI fa22428a2c Updating submodule(s)
HttpSysServer => 61f7c82d49

[auto-updated: submodules]
2018-04-10 09:02:04 -07:00
Kristian Hellang 6b18dea711 Replace Constants.CompletedTask with Task.CompletedTask (#235) 2018-04-10 08:58:39 -07:00
Kristian Hellang 61f7c82d49 Replace Helpers.CompletedTask and Helpers.CanceledTask (#446) 2018-04-10 08:57:25 -07:00
Pavel Krymets 80e799d17c PR comments 2018-04-10 08:30:37 -07:00
ASP.NET CI 07eb423ca9 Updating submodule(s)
SignalR => 8a3516284e

[auto-updated: submodules]
2018-04-10 07:18:49 -07:00
Ben Adams 8a3516284e Add GetMessageBytes to IHubProtocol (#1915) 2018-04-10 07:14:09 -07:00
ASP.NET CI cf3876cd23 Updating submodule(s)
SignalR => 31dfe91962

[auto-updated: submodules]
2018-04-10 05:38:35 -07:00
Vegard Løkken 31dfe91962 Support async access token factory (#1911) 2018-04-10 05:34:10 -07:00
ASP.NET CI b0333402dc Updating submodule(s)
EntityFrameworkCore => 3902d943a489107d9e2336a434ecf489376d0516
KestrelHttpServer => b030ab7e49
Logging => 4ba247853734e3070f229f8bcd17f9b3c0c1b5ab
SignalR => 6bc2ebb4c5

[auto-updated: submodules]
2018-04-10 03:08:48 -07:00
James Newton-King 6bc2ebb4c5
Use invariant culture and ordinal comparisons (#1928) 2018-04-10 16:52:19 +12:00
BrennanConroy 32bbc58bef
Replace messagepack dependency (#1046) 2018-04-09 18:47:56 -07:00
David Fowler b030ab7e49
Update Connections.Abstractions.csproj (#2473) 2018-04-09 17:55:14 -07:00
David Fowler f4313170f8
Split HandshakeProtocol into another class (#1921)
- Take a HandshakeRequest into the protocol type
2018-04-09 17:45:16 -07:00
ASP.NET CI 916a0ae493 Updating submodule(s)
EntityFrameworkCore => 661cbe7db1b7e7121fbf7385fda53e1cd81560eb
IISIntegration => 6e54256fca
Mvc => 3db924003e
SignalR => ecd665c471
Testing => ac4fba889eceedfcc6485795f4af053a5b14bfd9
WebHooks => 83ff841767e7818b83452e14120fb96bfa450690

[auto-updated: submodules]
2018-04-09 17:06:48 -07:00
BrennanConroy 6d050140e5
Swtich to MessagePack-CSharp (#1879) 2018-04-09 17:04:32 -07:00
Pavel Krymets e32b51d6e6 ENdpoint 2018-04-09 16:47:01 -07:00
Nate McMaster d7103b1853
Remove unnecessary conditions for skipping linux-arm builds 2018-04-09 16:04:54 -07:00
Andrew Stanton-Nurse ecd665c471
Crank 2: Let's Get Crankier (#1888)
Ports Crank, from https://github.com/SignalR/DCrank to ASP.NET Core SignalR
2018-04-09 15:46:26 -07:00
Pavel Krymets 6e54256fca
Merge pull request #764 from aspnet/pakrym/cleanup-logs
Cleanup LogEvent calls
2018-04-09 15:28:27 -07:00
Justin Kotalik 7afb3b6b12
Adds Gtest. (#762) 2018-04-09 15:27:52 -07:00
Pranav K 3db924003e Use VirtualRazorProjectSystem for Razor tests 2018-04-09 15:27:03 -07:00
ASP.NET CI 0c75b28645 Updating submodule(s)
Configuration => e25be46acb00ff4dcf684e75839342d7c37f2787
EntityFrameworkCore => 10548ec1bf3d89b6d32562a47dcd20394ede36e7
Mvc => 39053a5e22

[auto-updated: submodules]
2018-04-09 15:22:59 -07:00
Pavel Krymets f0eab4410a Cleanup 2018-04-09 15:20:28 -07:00
Pavel Krymets 7a14be006d Fast reads 2018-04-09 15:16:47 -07:00
Ryan Brandenburg c4196fabf3 Fix npm command 2018-04-09 15:03:27 -07:00
flash2048 39053a5e22 Corrects spelling of some comments 2018-04-09 14:37:20 -07:00
Pavel Krymets 5e5aa90575 Remove continue with 2018-04-09 14:26:28 -07:00
ASP.NET CI d71cca6b1b Updating submodule(s)
EntityFrameworkCore => c786c334ff1a403a3d72f33c9374eb0a70e7c3f8

[auto-updated: submodules]
2018-04-09 13:38:17 -07:00
Ryan Nowak df13669362 Improvements for delegate types (#516)
* Improve support for more types of event handlers

Improves support for for other types of event handlers with eventargs
types derived from UIEventArgs. Additionally fleshes out the set of
event handler types.

This change improves support for using more specific event handler types
like:

```
<button onclick="@Clicked" />

@functions {
    public void Clicked(UIMouseEventArgs e) { ... }
}
```

And:
```
builder.AddAttribute(12, "onkeypressed", KeyPressed);

...

void KeyPressed(UIKeyboardEventArgs e) { ... }

```

In particular what got better is:
- overload resolution for the AddAttribute method
- performance of different cases for AddAttribute

-----

The runtime now treats delegates as one of three types:
- arbitrary delegate: not attached to DOM events, not tracked by
renderer
- UIEventHandler: can attach to DOM events, tracked by renderer, first
class in IHandleEvents
- UIEventHandler-like: can attach to DOM events, tracked by renderer,
requires some special runtime support.

The set of overloads on AddAttribute has been tuned with a few specific
cases in mind.

Lambda expressions in an attribute will be inferred as UIEventHandler
unless the compiler does something more specific. So for instance,
passing a lambda as an attribute value for a component, where the
component doesn't define a matching attribute, will always be inferred
as UIEventHandler.

We now support method-group to delegate conversion for methods that
accept a derived UIEventArgs type. This means you can use a signature
like `void KeyPressed(UIKeyboardEventArgs e)` without any compiler
magic, and this will work in the runtime as long as the event type
produced by the runtime matches.

We also allow user-defined UIEventArgs-derived types. There's a pattern
for this and it requires defining an extension method and delegate type.

The method-group to delegate conversion part required some doing. It
doesn't play well with generics (Action<T> where T : UIEventArgs)
doesn't work at all. Adding more actual overloads (as opposed to
extensions) would cause lambda cases we want to work to be ambiguous.

----

The performance win here is to remove the need for a 'wrapper' delegate
created by the event handler tag helper code. This wrapper is now
created by the runtime, but only *after* we have checked the frame for
changes. This requires more heavy lifting in the runtime, but has the
advantage of producing no-op diffs as often as possible.

You will still get some inefficient behavior if your component uses a
capturing lambda in an event handler, so don't do that.

* Add selenium logs to test output

* Minor feedback

* WIP
2018-04-09 13:21:12 -07:00
ASP.NET CI 2086ed0d17 Updating submodule(s)
Identity => 956e76f6cf

[auto-updated: submodules]
2018-04-09 19:42:53 +00:00
Pavel Krymets 0feb83b637 Dont format some things 2018-04-09 12:10:32 -07:00
ASP.NET CI dbe3e42a50 Updating submodule(s)
Mvc => ec31ff0c28

[auto-updated: submodules]
2018-04-09 11:27:34 -07:00
Barry Dorrans 956e76f6cf
Add Alexandre's MongoDb provider 2018-04-09 11:27:27 -07:00
Pranav K ec31ff0c28
Throw if multiple Body bound parameters are discovered
Fixes #6963
2018-04-09 11:20:34 -07:00
ASP.NET CI 00fcda610c Updating submodule(s)
SignalR => 01089da84d

[auto-updated: submodules]
2018-04-09 17:51:19 +00:00
Pavel Krymets dca31cc6f6 Perf 2018-04-09 10:34:44 -07:00
Nate McMaster aff2d08d04
Remove unused external dependencies (#1043) 2018-04-09 09:57:57 -07:00
Nate McMaster 68a122b16c
Merge branch 'release/2.1' into dev 2018-04-09 09:54:00 -07:00
David Fowler 01089da84d
Use in for ReadOnlySequence (#1900) 2018-04-09 09:29:27 -07:00
ASP.NET CI 7575e60278 Updating submodule(s)
SignalR => 962ea25637

[auto-updated: submodules]
2018-04-09 09:26:47 -07:00
BrennanConroy 962ea25637
Update deps (#1919) 2018-04-09 09:21:56 -07:00
Nate McMaster 7ed3ccb768
Update to core-setup 2.0.7-20180406 packages 2018-04-09 09:19:01 -07:00
Steve Sanderson 281d5a8751 Enable same-origin credentials by default. Add E2E test to show they can be sent to different-origin domains too. 2018-04-09 12:54:13 +01:00
flash2048 e096d7e0b1 Correct the use of a parameter 'autoSpace' in the constructor 2018-04-09 12:08:20 +01:00
ASP.NET CI cdab4a7ae5 Updating submodule(s)
SignalR => 95e868b68c

[auto-updated: submodules]
2018-04-09 03:13:18 -07:00
David Fowler 95e868b68c
Remove JsonSerializer (#1913) 2018-04-09 02:56:46 -07:00
Ben Adams 406d8f9a81 readonly readonly structs (#1908) 2018-04-08 23:28:37 -07:00
Pavel Krymets 8f1781f7eb Cleanup LogEvent calls 2018-04-08 19:21:55 -07:00