Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Asp net core in azure

1,224 views

Published on

Topic Discussed:
Introducing lightweight ASP.NET Core
Overview
Getting started
Middleware
Deployment in Azure

Published in: Technology
  • Be the first to comment

Asp net core in azure

  1. 1. Microsoft Silverlight for Windows Phone Tech blogger Microsoft Technical Community Speaker
  2. 2.  Introducing lightweight ASP.NET Core • Deployment in Azure
  3. 3. A new open-source and cross-platform framework for building modern cloud-based Web applications using .NET
  4. 4. Choose your Editors and Tools Open Source with Contributions Cross-PlatformOSS Seamless transition from on-premises to cloud Faster Development CycleTotally Modular Fast
  5. 5. ResponseRequest Middleware
  6. 6. public class Startup { public void Configure(IApplicationBuilder app) { app.UseStaticFiles(); app.UseWelcomePage(); } }
  7. 7. app.Use(next => { return async ctx => { await ctx.Response.WriteAsync("Hello from USE"); await next(ctx); }; }); app.Use(async (ctx, next) => { await ctx.Response.WriteAsync("Hello from USE"); await next(); }); app.Run(async ctx => { await ctx.Response.WriteAsync(“Hello from Run"); });
  8. 8. public class MyMiddleware { private readonly RequestDelegate _next; public MyMiddleware(RequestDelegate next) { _next = next; } public async Task Invoke(HttpContext context) { await context.Response.WriteAsync("Hello!"); await _next(context); } }
  9. 9. Facebook Personal Blog LinkedIn http://LearnWithShahriar.wordpress.com
  10. 10. Thank You

×