This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
| using OpenTelemetry; | |
| using OpenTelemetry.Logs; | |
| using OpenTelemetry.Resources; | |
| using OpenTelemetry.Trace; | |
| var builder = WebApplication.CreateBuilder(args); | |
| var app = builder.Build(); | |
| var appResourceBuilder = ResourceBuilder.CreateDefault() | |
| .AddService(serviceName: Telemetry.ServiceName, serviceVersion: Telemetry.ServiceVersion); |
This document now exists on the official ASP.NET core docs page.
| /* -------------------------------------------------------------------------- */ | |
| // All Bootstrap 5 Sass Mixins [ Cheat sheet ] | |
| // Updated to Bootstrap v5.1.x | |
| // @author https://anschaef.de | |
| // @see https://github.com/twbs/bootstrap/tree/main/scss/mixins | |
| // @see https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss | |
| /* -------------------------------------------------------------------------- */ | |
| // Options | |
| // @see https://getbootstrap.com/docs/5.1/customize/options/ |
| using System.Collections.Generic; | |
| using System.Text.Encodings.Web; | |
| using Microsoft.AspNetCore.Antiforgery; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.AspNetCore.Mvc.ModelBinding; | |
| using Microsoft.AspNetCore.Mvc.Rendering; | |
| using Microsoft.AspNetCore.Mvc.Routing; | |
| using Microsoft.AspNetCore.Mvc.ViewFeatures; | |
| using Microsoft.Extensions.Options; |
| using System.Linq.Expressions; | |
| namespace Microsoft.EntityFrameworkCore | |
| { | |
| public static class IQueryableExtensions | |
| { | |
| public static IQueryable<TQuery> In<TKey, TQuery>( | |
| this IQueryable<TQuery> queryable, | |
| IEnumerable<TKey> values, | |
| Expression<Func<TQuery, TKey>> keySelector) |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Extensions.Hosting; | |
| public class Program | |
| { | |
| public static void Main(string[] args) => | |
| Host.CreateDefaultBuilder(args) | |
| .ConfigureWebHostDefaults(webBuilder => |
With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.
This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.
If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!
Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)
| using System.Linq; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.AspNetCore.Mvc.ApplicationModels; | |
| using Microsoft.AspNetCore.Mvc.Routing; | |
| namespace MyWebApi.Extensions | |
| { | |
| public static class MvcOptionsExtensions | |
| { | |
| public static void UseGeneralRoutePrefix(this MvcOptions opts, IRouteTemplateProvider routeAttribute) |
This document describes the APIs of Memory<T>, IMemoryOwner<T>, and MemoryManager<T> and their relationships to each other.
See also the Memory<T> usage guidelines document for background information.
Memory<T> is the basic type that represents a contiguous buffer. This type is a struct, which means that developers cannot subclass it and override the implementation. The basic implementation of the type is aware of contigious memory buffers backed by T[] and System.String (in the case of ReadOnlyMemory<char>).Angular (aka Angular 2) is a new framework completely rewritten from the ground up, replacing the famous AngularJS framework (aka Angular 1.x).
More that just a framework, Angular should now be considered as a whole platform which comes with a complete set of tools, like its own CLI, debug utilities or performance tools.