Comments (9)
Before closing the issue, I will also need to resolve the correct ApplicationName and pass it along to the builder when we wrap the RequestDelegate at https://github.com/aspnet/MetaPackages/blob/dev/src/Microsoft.AspNetCore/WebHost.cs#L38. Otherwise the correct ApplicationName gets overwritten to Microsoft.AspNetCore
.
from metapackages.
Adding .UseHandler()
following the existing extension methods might be helpful as well skipping .Configure()
:
IWebHost webHost = new WebHostBuilder().UseKestrel().UseUrls(url).UseHandler(context => context.Response.WriteAsync("Hello, World!")).Build()
from metapackages.
@lutzroeder we don't have a concept of "handlers" in ASP.NET Core (although I course understand the intent) but the bigger issue is a method like that won't compose properly with the rest of the methods on IWebHostBuilder
, i.e. you can't call it more than once, you can't call it along with .Configure()
, etc. Once you go to the builder API, you have to configure the pipeline the normal way.
from metapackages.
@JunTaoLuo is this done now?
from metapackages.
@JunTaoLuo @davidfowl maybe we should add the debug logger by default too. Originally I think we planned to just merge it into the core logging package and always be on but it could just be enabled by this now. Thoughts?
from metapackages.
I still need to add tests. I only merged the changes to unblock @CesarBS. I think we also found a bug that need to be fixed.
from metapackages.
@JunTaoLuo bugs? 🔥
from metapackages.
@JunTaoLuo please ensure the DebugLogger
is added by WebHost.CreateDefaultBuilder
too. This needs to happen so that templates don't need to add it and the debug logging continues to work.
from metapackages.
Functional tests added, and follow up issues have been filed.
from metapackages.
Related Issues (20)
- CreateDefaultBuilder doesn't work with command line "dotnet run -urls http://xxxx:xxxx" HOT 1
- Same key form the second JSON source is ignored HOT 1
- Can't install dotnet-sdk nightly from debian feed HOT 18
- Conflicting Linux packages should be declared via the "conflicts" field HOT 4
- Add SignalR to the metapackage HOT 5
- Stop adding CommandLine configuration provider twice HOT 5
- CreateDefaultBuilder() does not load and apply appsettings.json HOT 2
- ASP.NET Core Shared Framework ("runtime") HOT 6
- Check the default TLS algorithms between a net461 client and a Core server. HOT 10
- Add Microsoft.AspNetCore.HttpOverrides to CreateDefaultBuilder() HOT 4
- Discussion for Introduction of new meta-package "Microsoft.AspNetCore.App" HOT 32
- WebHost.CreateDefaultBuilder enables the console logger in production HOT 1
- Support .NET Framework apps using Microsoft.AspNetCore.App & Microsoft.AspNetCore.All HOT 8
- Microsoft.AspNetCore.App is not specifying version ranges for 3rd party dependencies HOT 2
- Add Microsoft.AspNet.WebApi.Client/5.2.4 to the Microsoft.AspNetCore.All and Microsoft.AspNetCore.App meta-packages HOT 1
- Microsoft.Extensions.Configuration.Abstractions manifest does not match AspNetCore.All HOT 3
- CreateDefaultBuilder overrides ASPNETCORE_CONTENTROOT
- Add UseIIS call to CreateDefaultBuilder HOT 1
- Add event source logger in CreateDefaultBuilder
- Test failure: LoggingConfigurationSectionPassedToLoggerByDefault HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metapackages.