یک مثال ساده در قالب یک گفتگو دوطرفه که با تکنولوژیهای Asp.net Core SignalR و Angular پیاده سازی شده است
یک CMS تجاری بزرگ با قابلیتهای زیر
توزیع مداوم و پیوستهی یک برنامهی ASP.NET Core توسط Docker ، Kubernetes و Jenkins
using UAParser; ... string uaString = "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3"; // get a parser with the embedded regex patterns var uaParser = Parser.GetDefault(); // get a parser using externally supplied yaml definitions // var uaParser = Parser.FromYamlFile(pathToYamlFile); // var uaParser = Parser.FromYaml(yamlString); ClientInfo c = uaParser.Parse(uaString); Console.WriteLine(c.UserAgent.Family); // => "Mobile Safari" Console.WriteLine(c.UserAgent.Major); // => "5" Console.WriteLine(c.UserAgent.Minor); // => "1" Console.WriteLine(c.OS.Family); // => "iOS" Console.WriteLine(c.OS.Major); // => "5" Console.WriteLine(c.OS.Minor); // => "1" Console.WriteLine(c.Device.Family); // => "iPhone"
Get Browser Info,Os Info and Device Type
public void ConfigureServices(IServiceCollection services) { // Add browser detection services. services.AddDetection() .AddDevice(); .AddBrowser() // concept .AddEngine() // concept .AddPlatform(); // concept // Add framework services. services.AddMvc(); } public class HomeController : Controller { private readonly IUserAgent _useragent; private readonly IBrowser _browser; private readonly IEngine _engine; private readonly IPlatform _platform; private readonly IUserAgent _useragent; private readonly IDevice _device; public HomeController(IBrowserResolver browserResolver, IEngineResolver engineResolver, IDeviceResolver deviceResolver, IPlatformResolver platformResolver) { _useragent = browserResolver.UserAgent, _browser = browserResolver.Browser, _engine = engineResolver.Engine, _platform = platformResolver.Platform _useragent = deviceResolver.UserAgent, _device = deviceResolver.Device } public IActionResult Index() { return View(); } }
The following high-level features are planned for the ASP.NET Core 2.1 release:
SignalR - Real-time web framework on ASP.NET Core (aspnet/SignalR#394)
HTTPS - On by default and easy to configure (aspnet/Home#2308)
GDPR compliance - Templates updated with new privacy features (aspnet/Security#1561, aspnet/Identity#1341)
Web API conventions - Rich Swagger support without attributes (aspnet/Mvc#6870, aspnet/Mvc#6784)
IHttpClientFactory - HttpClient as a service, handle cross-cutting concerns like caching, retry logic, timeouts and circuit breakers (aspnet/HttpClientFactory#42)
ASP.NET Core Module in-proc hosting - 6x the throughput on IIS! Better startup error handling (aspnet/AspNetCoreModule#265)
Razor pages improvements - Support for areas, ~/Pages/Shared (aspnet/Mvc#6926, aspnet/Mvc#7193)
MVC functional test fixture - Easily test your MVC apps end-to-end (aspnet/Mvc#6233)
Build-time Razor - Compile Razor pages and views as part of your build, improved startup performance (aspnet/Razor#1809)
UI as a library - Package Razor pages and views as reusable libraries (aspnet/Razor#1809)
Identity UI package and scaffolder - Add identity to any application (aspnet/Home#2311)
WebHooks - Handle WebHook notifications from ASP.NET Core apps (aspnet/WebHooks#5)