Commit Graph

37403 Commits

Author SHA1 Message Date
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
James Newton-King bd78785f8d
Minor DefaultHubLifetimeManager improvements (#1904) 2018-04-09 12:31:14 +12:00
David Fowler 9fd713c73a
Make MemoryBufferWriter a Stream (#1907)
- Get rid of LimitArrayPoolWriteStream and use MemoryBufferWriter in its place in the MessagePackProtocol implementation.
- Added tests for MemoryPoolBufferWriter and fixed a bug in CopyToAsync
- Added CopyTo(`IBufferWriter<byte>`)
- Changed MemoryBufferWriter to fill the underlying arrays that back segments, the segment size is now a minimum.
2018-04-08 16:11:17 -07:00
Ryan Nowak d3bdb987b0 Add a new feed dotnet-core
This is the *new* and most correct feed for our developer builds.
Leaving the old ones there for now because the other ASP.NET Repos also
left them there.
2018-04-08 14:24:06 -07:00
Ryan Nowak f2c78b0776 Update Razor dependency (non-template) 2018-04-08 14:24:06 -07:00
Ryan Nowak b106cf4d6c Update non-product dependencies 2018-04-08 14:24:06 -07:00
James Newton-King 27d18578d0
Use expression body properties and implicit arrays where possible (#1906) 2018-04-08 21:40:01 +12:00
ASP.NET CI 02d22e5ec0 Updating submodule(s)
EntityFrameworkCore => 0e1d2ca3d7b4dc49b77368ede5ccb8b26a4fa1f3

[auto-updated: submodules]
2018-04-07 21:53:31 -07:00
ASP.NET CI 2fb5675172 Updating submodule(s)
SignalR => 0f663cadc4

[auto-updated: submodules]
2018-04-07 20:51:32 -07:00
James Newton-King 0f663cadc4
readonly all the things (#1901) 2018-04-08 15:47:01 +12:00
chassq 3f0c2b31a0 Update README.md
Wanted to make sure people knew to get the latest preview of VS 2017...
2018-04-07 19:29:41 -07:00
ASP.NET CI f0a42a846a Updating submodule(s)
KestrelHttpServer => 4760cce6aa

[auto-updated: submodules]
2018-04-08 02:01:54 +00:00
David Fowler 4760cce6aa
Remove IConnection (#2472) 2018-04-07 18:55:59 -07:00
ASP.NET CI d088129af5 Updating submodule(s)
SignalR => a3337eb6bd

[auto-updated: submodules]
2018-04-07 17:55:11 -07:00
David Fowler a3337eb6bd
Remove traces of ASP.NET Core Sockets (#1899) 2018-04-07 17:51:12 -07:00
David Fowler 767f2900f9 Add support for creating a bounded channel in helper 2018-04-07 16:54:33 -07:00
ASP.NET CI 5a9d919afb Updating submodule(s)
SignalR => 0d9c3d8898

[auto-updated: submodules]
2018-04-07 16:47:20 -07:00
David Fowler 0d9c3d8898
Buffer messages so we get a single outgoing request (#1898) 2018-04-07 16:41:52 -07:00
David Fowler c1049b722d
The grand unification of ConnectionContext (#1895)
This change rationalizes the 2 very similar abstractions that exist in Connections.Abstractions, IConnection and ConnectionContext. It also introduces an IConnectionFactory to SignalR that is used to create a new ConnectionContext for a HubConnection.

- HubConnection just completes both ends of the transport pipe instead of calling DisposeAsync.
- Implemented ConnectionContext on HttpConnection and added HttpConnectionFactory
-  Updated tests
2018-04-07 16:19:01 -07:00