Commit Graph

15565 Commits

Author SHA1 Message Date
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
Nate McMaster 77cac3b6be Update package feeds and dependencies for 2.0.1 (#1284) 2017-09-18 12:42:26 -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
Nate McMaster 4924f79efc Update PackageReferences to non-floating versions when building multiple repos 2017-09-18 12:05:12 -07:00
Justin Kotalik 500668619f Detect duplicate startups in HostingStartupAssemblies (#1183) 2017-09-18 11:47:34 -07:00
Nate McMaster 51dbdbeac2 Code cleanup 2017-09-18 11:15:51 -07:00
Nate McMaster a10ba83751 Add /t:UpdateRepoLineups which will automatically update the build/dependencies.targets file with appropriate versions 2017-09-18 10:33:48 -07:00
Nate McMaster dc50526a6d Rename target, remove unused parameter, and add comments to the AnalyzeBuildGraph task 2017-09-18 09:37:12 -07:00
Nate McMaster 997be52987 Add repos that should be patched due to cascading versions 2017-09-15 18:03:29 -07:00
Nate McMaster 051150475f Bump version to 2.0.1 2017-09-15 18:00:22 -07:00
Nate McMaster 7568441acc Update analysis to account for non-shipping package references (samples, tests) 2017-09-15 17:45:55 -07:00
Nate McMaster 479e37d7cc Include Identity in the list of repos that are being patched 2017-09-15 16:14:25 -07:00
Nate McMaster a0547c7b9f Generate a file that contains all of the dependencies and their versions 2017-09-15 16:10:24 -07:00
Javier Calvarro Nelson c24c717eee Add extension methods in our test host package to streamline setup of apps.
* Create a sources package to encode the convention followed in our templates to create a WebHost.
* Add an extension method to setup the content root relative to the solution folder.
* Add a factory method to create a WebHostBuilder based on the pattern followed in our template.
2017-09-15 15:08:35 -07:00
Nate McMaster 4220c516bc Ensure PackageReference versions are consistent with artifacts that will be produced 2017-09-15 14:52:47 -07:00
Nate McMaster a43fb2271e Use artifact info to correctly analyze the packages produced from a repository 2017-09-15 13:17:49 -07:00
Nate McMaster 8276bd163e Analyze repository build order from AnalyzeBuildGraph 2017-09-15 11:12:02 -07:00
Julian Dominguez 1c3fa82908 Preserve state in HostBuilder.Properties (#1212) 2017-09-15 02:00:44 -07:00
Cesar Blum Silveira a31d1e024c Merge code paths duplicated between HTTP/1.x and HTTP/2 implementations (#2017).
- Most of the shared code is in the HttpProtocol class (former Frame)
- Virtual calls handle protocol-specific things
- Move the ProcessRequestsAsync loop to HttpProtocol
- Implement HTTP/1.x request processing in Http1Connection and HTTP/2
  in Http2Stream, with Http1Connection<T> and Http2Stream<T> subclassing
  those classes in order to handle the generic HttpContext parameter
- Split MessageBody into Http1MessageBody and Http2MessageBody,
  with MessageBody containing shared member variables and methods
2017-09-14 17:35:57 -07:00
Nate McMaster 8f25a559a5 Begin implementation of build graph analysis 2017-09-14 17:13:57 -07:00
Cesar Blum Silveira d28b413390 Add tracing to KeepAliveTimeoutTests.ConnectionKeptAliveBetweenRequests to investigate test failures. 2017-09-14 16:55:44 -07:00
Nate McMaster 52757943ac Backport improvements from dev branch to repo tasks
- CalculateBuildGraph
 - PinVersion tool
 - Ensuring sub-repositories build with the same version of KoreBuild executing in Universe
2017-09-14 15:23:27 -07:00
Nate McMaster 9eb27fa53f Stub out a task to validate cascading version effects (#557) 2017-09-14 14:48:11 -07:00
Chris Ross (ASP.NET) ae9da9290e #1163 Implement the generic host 2017-09-14 14:48:06 -07:00
Nate McMaster 9c0eea3788 Update the bootstrapper to use compiled KoreBuild 2017-09-14 14:40:03 -07:00
Nate McMaster 1fef45db67 Start preparing list of repositories that need patching (#556) 2017-09-14 14:10:41 -07:00
Cesar Blum Silveira da7bc24eec Add request parsing regression tests. 2017-09-13 14:49:45 -07:00
Justin Kotalik 5c2906a7c6 [WIP] Fixing win7 compilation issues. (#141) 2017-09-13 14:40:00 -07:00
jhkimnew 0120dae36b Jhkim/updatetest (#155)
* Added new test scenarios for websocket

* Fixed test issues

* Fixed test issues
2017-09-13 14:32:53 -07:00
Jonathan 5128efe0e8 Fix HTTP capitalization in comment (#931) 2017-09-12 22:19:52 -07:00
Nate McMaster 71a11d5ed6 Remove redundant calls to TimeoutAfter 2017-09-12 14:23:16 -07:00
smarts 2b9516703b Update comments to use correct class name. (#937) 2017-09-12 13:53:04 -07:00
jhkimnew c5f59e06c3 Added new test scenarios for websocket (#153) 2017-09-12 11:39:55 -07:00
Nate McMaster 135e1c248d Use PackageLineup to manage PackageReference versions 2017-09-12 11:06:26 -07:00
Nate McMaster 4a3d9b0955 Use Directory.Build.props/targets 2017-09-12 10:58:27 -07:00
Steve Sanderson 1f596e127b When the CI system supplies a .deps dir, use that as the lineups/packages resource source 2017-09-12 11:23:22 +01:00
pan-wang a732b106f5 Fix websocket close handshake issue and race condition when websocket client disconnect without close handshake (#151) 2017-09-11 18:44:15 -07:00
Justin Kotalik 509ddc6ced Adds ANCM in-process flag. (#144) 2017-09-11 15:30:54 -07:00
Steve Sanderson c39c1aaa38 Move 2.1 templates to netcoreapp2.0 until we use an SDK that supports netcoreapp2.1 2017-09-11 18:53:59 +01:00
Steve Sanderson 8c0dd1d2cc Fix for CI agents having extra template package already installed 2017-09-11 18:41:58 +01:00
Steve Sanderson b38f0dbc7a Change tests to use 2.0 templates until SDK is updated 2017-09-11 18:32:54 +01:00
Steve Sanderson 56fdcad4d5 Also uninstall the 2.0 template package when reinstalling for tests 2017-09-11 18:17:13 +01:00
Steve Sanderson 148e4af837 Make template package uninstallation detection report errors properly 2017-09-11 18:13:15 +01:00
Jass Bagga bf5c043de3 Refactor GetPath in JsonPatchDocumentOfT (#107)
Addresses #98
2017-09-11 09:54:29 -07:00
Steve Sanderson cb500fe3b8 Account for non-installed templates when preparing test run 2017-09-11 17:41:24 +01:00
Pavel Krymets ee009982dc Add KeyVault encryption to DataProtection (#273) 2017-09-11 08:51:56 -07:00
Steve Sanderson 5eeee55b13 Add missing content files for Microsoft.DotNet.Web.ProjectTemplates.2.1 2017-09-11 16:36:06 +01:00
Steve Sanderson 1a50c968c4 Update tests to cover 2.1 templates 2017-09-11 16:25:51 +01:00