Category Archives: Net Core

hello-world-startup-multiple-configure-environment

결과 : Hello world Development

hello-world-startup-istartupfilter

결과 : Hello world from GreetingMiddleware

hello-world-startup-istartup

결과 :Development

hello-world-startup-capture-errors

결과 : An error occurred while starting the application. Exception: error here WebApplication1.Startup.ConfigureServices(IServiceCollection services) in Program.cs, line 21 Exception: error here WebApplication1.Startup.ConfigureServices(IServiceCollection services) in Program.cs 21. throw new Exception(“error here”); Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services) Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices() Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize() Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication() Show raw exception details .NET Core 4.6.28008.02 X64 v4.0.0.0 | Microsoft.AspNetCore.Hosting version 2.2.7-servicing-10089 | Microsoft Windows 10.0.18362 | Need… Read More »

hello-world-startup-basic-request-verb

결과 : Request GET

hello-world-startup-basic-request-query-string-3

결과 : All query string click this link to add query string •message – hello,world,again •isTrue – 1 •morning – good

hello-world-startup-basic-request-query-string-2

결과 : Query String with multiple values click this link to add query string •hello •world •again

hello-world-startup-basic-request-query-string

결과 : Query String with a single value click this link to add query string ‘Message’ query string: hello world

hello-world-startup-basic-request-headers-typed

결과 : There are more common HTTP headers properties available in HttpContext.Request.GetTypedHeaders()Accept: text/html

hello-world-startup-basic-request-headers-names

결과 : Request Headers from Microsoft.Net.Http.Headers.HeaderNames •Accept = Accept •AcceptCharset = Accept-Charset •AcceptEncoding = Accept-Encoding •AcceptLanguage = Accept-Language •AcceptRanges = Accept-Ranges •AccessControlAllowCredentials = Access-Control-Allow-Credentials •AccessControlAllowHeaders = Access-Control-Allow-Headers •AccessControlAllowMethods = Access-Control-Allow-Methods •AccessControlAllowOrigin = Access-Control-Allow-Origin •AccessControlExposeHeaders = Access-Control-Expose-Headers •AccessControlMaxAge = Access-Control-Max-Age •AccessControlRequestHeaders = Access-Control-Request-Headers •AccessControlRequestMethod = Access-Control-Request-Method •Age = Age •Allow = Allow •Authority = :authority… Read More »