Commit Graph

37701 Commits

Author SHA1 Message Date
Ryan Brandenburg 89b55679f2 Update bootstrappers 2017-09-19 15:27:31 -07:00
Ryan Brandenburg f9fa765fe8 Update bootstrappers 2017-09-19 15:27:31 -07:00
Ryan Brandenburg 481d787647 Update bootstrappers 2017-09-19 15:27:17 -07:00
Ryan Brandenburg 8cdba4f7ae Update bootstrappers 2017-09-19 15:27:17 -07:00
Ryan Brandenburg f7e8efce37 Update bootstrappers 2017-09-19 15:26:46 -07:00
Pawel Kadluczka ac36121f26 Update README
Adding information about requirements for building the repo. Fixes: https://github.com/aspnet/SignalR/issues/906
2017-09-19 15:13:18 -07:00
Ryan Brandenburg 0c058894c2 Update bootstrappers 2017-09-19 14:44:54 -07:00
Ryan Brandenburg 98385cbcb0 Update bootstrappers 2017-09-19 14:44:54 -07:00
Nate McMaster 0c2708238d Update Korebuild to 2.0.2-alpha-14598 2017-09-19 14:21:33 -07:00
NtFreX 137349edae Add SignalR to common repository list (#2205) 2017-09-19 13:59:14 -07:00
Pranav K 127d23a022 Parse LanguageVersion correctly
Fixes https://github.com/aspnet/Mvc/issues/6611
2017-09-19 13:38:40 -07:00
Ryan Nowak f23ff9452c [Design] Create Template engine from project snapshot 2017-09-19 12:54:55 -07:00
Pawel Kadluczka 80bf695181 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-19 11:37:03 -07:00
Pawel Kadluczka bee9fcb0d8 Adding support for multiple callbacks per client side method
...and a possibility to remove callbacks

Fixes: #807
2017-09-19 11:13:22 -07:00
Nate McMaster cca1480f3a Switch from feature/x to rel/x branches 2017-09-19 10:48:15 -07:00
Pranav K f0a5af2ba7 Revisit the unwrapping code in ControllerActionInvoker
Fixes #6679
2017-09-19 09:49:37 -07:00
agoretsky 241880eadc Minor improvements (#1403)
* Fixed exception overwriting due to possible NullReferenceException

* Removed unused local variables
2017-09-19 09:14:49 -07:00
David Fowler 24455da8fb Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-18 20:46:14 -07:00
Ryan Nowak 12e61d75a7 remove ifdefs, our tests compile release sometimes 2017-09-18 18:23:32 -07:00
Javier Calvarro Nelson 96bd2769d0 Improvements to the testing package.
* Detect a ConfigureDefaultBuilder static method on Program.cs of the test site
and use it to initialize the IWebHostBuilder instance that we configure for testing.
* Make use of the new service configuration extensibility points in Hosting to override
services for testing.
* Get rid of MvcWebApplicationBuilder and move MVC specific methods into extension methods.
2017-09-18 18:12:01 -07:00
Pawel Kadluczka 8c9016cfbd Removing AspNetCoreVersion for a package reference 2017-09-18 17:26:02 -07:00
Ryan Nowak 6e6a24cbb4 Add a background listener for notifications
This change adds an actual background worker for listening to project
change notifications and starts sending updates when the project's razor
dependencies change.

I had to do a litle surgery to get things working. There were plenty of
small bug fixes.

Additionally I got rid of the WeakReferences for tracking listeners. I
was seeing TextBuffers hanging around in VS longer than I expected and
the WeakReferences weren't getting cleaned up. I think it's better that
we just track the lifetime.
2017-09-18 16:56:53 -07:00
David Fowler 48d97bf271 Turned Stream into StreamAsync (#902)
* Turned Stream into StreamAsync
- Before we were fire and forgetting the invocation that initiated
the streaming, this changes that so that the caller now has to await
to get the channel.

#899
2017-09-18 16:44:18 -07:00
Nate McMaster 177fa71634 Copy packages to ship/noship and verify coherent versions (#560) 2017-09-18 16:44:12 -07:00
Kiran Challa 72eb546329 Added attribute adapter for DataAnnotation's FileExtensionsAttribute 2017-09-18 16:20:26 -07:00
Doug Bunting fd9cb08790 Add Switch.Microsoft.AspNetCore.Mvc.UseDateTimeTypeForDateTimeOffset quirks mode
- patch recipients can use switch to undo the #6648 fix
2017-09-18 15:13:43 -07:00
Doug Bunting 6041c6b966 Auto-select `type="text"` for `DateTimeOffset` values
- cherry-picked from 7e4a8fe in dev
- #6648
- a different take on #4871
- `DateTime` can also round-trip `DateTimeKind.UTC` with `[DataType("datetimeoffset")]` or `[UIHint("datetimeoffset")]`
- since they're now handled differently by default, add more `DateTime` tests
- expand tests involving `Html5DateRenderingMode.CurrentCulture`

nits: make VS-suggested changes to files updated in this PR
2017-09-18 15:13:33 -07:00
Cesar Blum Silveira 91eb4cd54c Fix flakiness in KeepAliveTimeoutTests.ConnectionKeptAliveBetweenRequests (#1684). 2017-09-18 15:12:13 -07:00
Vladimir Sadov 1470ee0658 Updating toolset compiler (#2052) 2017-09-18 15:07:47 -07:00
Hao Kung d1c5f8d78c Fix regression with ChangePhoneNumber tokens 2017-09-18 15:04:04 -07:00
Pranav K 9f5e4eb483 Allow "page" route parameter to be used in Mvc controllers
Fixes #6660
2017-09-18 15:02:13 -07:00
David Fowler 37e122a0c6 Added overloads without the HostingContext (#1220)
* Added overloads without the HostingContext
2017-09-18 14:48:45 -07:00
Kiran Challa 47287c508e Added new extension methods to configure all MVC localization services
[Fixes #5436] Must call `AddViewLocalization()` to use `IStringLocalizer<T>` in an application
2017-09-18 14:28:55 -07:00
David Fowler 2efbd6a95a Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-18 14:14:23 -07:00
Nate McMaster 351156f455 Include DotNetCliToolReference's when computing the build order 2017-09-18 14:04:24 -07:00
Kiran Challa 23b7d8f62a Added RequestFormLimits filter.
[Fixes #5128] Overriding Request Form max upload limit
2017-09-18 13:48:15 -07:00
Pavel Krymets 46dadbb186 Make RegistryPolicyResolver an interface to fix 3d party DI (#275) 2017-09-18 13:43:45 -07:00
Nate McMaster f77b6ff614 Re-add CloneRepositories to BuildDependsOn 2017-09-18 13:26:11 -07:00
Nate McMaster b9e332c11b Use KoreBuild to clone source code instead of TeamCity 2017-09-18 13:10:08 -07:00
Nate McMaster 83adfd2484 Find commit hashes from the TeamCity environment variables 2017-09-18 13:06:07 -07:00
David Fowler 712c992ca8 Add BackgroundService, a base class for long running HostedServices (#1215)
* Add BackgroundService, a base class for long running HostedServices
- Today the IHostedService pattern is a StartAsync/StopAsync pattern. Neither of these
methods are supposed to return a long running task that represents an execution. If
you wanted to have some logic run on a timer every 5 minutes, it's unnatural to do so
with simple async idioms. This base class implements IHostedService and exposes
a pattern where a long running async Task can be returned.
- The token passed into ExecuteAsync represents the lifetime of the execution.
- StartAsync and StopAsync were made virtual to allow the derived type to
indicate Start failures.
- Added tests
2017-09-18 12:55:54 -07:00
David Fowler a93e4be82f Added Cancellation support (#897)
* Added Cancellation support
- Added ConnectionAbortedToken to the HubConnectionContext. This allows
arbitrary code to access a handle that represents the connection lifetime
without handling OnDisconnectedAsync on the hub itself.
- Expose Abort on HubConnectionContext to allow server side methods to
abort the connection.
- Use the Abort to stop the main loop when unexpected invocation errors happen.
- Use the connection aborted token as unsubscribe from the IObservable and to complete
the IAsyncEnumerator for streaming results.
2017-09-18 12:47:38 -07:00
Ryan Nowak e114911d77 Introduce [ApiController]
This puts a de-facto metadata approach in the box to declare
unambiguously 'Hey, I am an API!'.

I think this is worth us doing at this point because I haven't really
seen anyone in the community running with targeting conventions at
equivalence classes of controllers.

Now that we're putting API-specific, opinionated behaviors in the box,
we need to away to make it opt-in and declarative.
2017-09-18 12:43:05 -07:00
Nate McMaster 8697f2b271 Update package feeds and dependencies for 2.0.1 (#6843) 2017-09-18 12:43:00 -07:00
Nate McMaster 9b53da7333 Update package feeds and dependencies for 2.0.1 (#203) 2017-09-18 12:42:44 -07:00
Nate McMaster 77cac3b6be Update package feeds and dependencies for 2.0.1 (#1284) 2017-09-18 12:42:26 -07:00
Nate McMaster 37605799d5 Update version.props, dependencies, and package feeds for 2.0.1 (#1431) 2017-09-18 12:41:28 -07:00
Nate McMaster 4fa08287a2 Remove dead code and ensure source code is cloned when building on CI 2017-09-18 12:39:27 -07:00
Nate McMaster 4182b0b5d2 When BuildGraphOf is used, only pin package references to packages currently building 2017-09-18 12:31:08 -07:00
Ryan Nowak c09575dbd0 Fix #4914 patternize filter overrides
Adding some convenience methods to the context class and updating our
code to use them.
2017-09-18 12:12:44 -07:00