SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
Revealing the “Hot-Spots” Of ASP.Net Core 1.0
– The Future of ASP Technology
In the world of competition, Microsoft has always chosen to be a step ahead.
This time Microsoft has taken a move towards going open source. The .Net
development field is buzzing with the new version of .NET. The new version was
supposed to be called as ASP.NET 5, but as this version would be complete
restructuring of the framework instead of upgrading, the name has been
renamed to ASP.NET Core 1.0. This version comes with lot of performance
improvements and new features. So, let us have a look at the ASP.NET Core 1.0
Roadmap which is queued up for the further release.
What’s new with ASP.Net Core 1.0?
You must be excited to know its features, right? So, presenting
below top features of the future release ASP.Net Core 1.0:
1) Net going to be compatible with OSX and Linux: Isn’t it great news??
I think, you must have never thought that ASP.Net could run on any other
platform except Windows. But this is true!! First time in the history of the
ASP.Net, you can successfully run ASP.Net Core 1.0 applications on OSX and
Linux along with Windows.
Enabling the ASP.Net Core 1.0 on these three platforms- Windows, OSX and
Linux can help you to change everything. The developers and designers are able
to build their apps with ASP.Net Core 1.0 while using their favourite
development environment like the Sublime Text and WebStorm when working
with ASP.Net Apps.
2) GruntJS, NPM and Bower Support: There are a number of things to
explore with the front-end development in ASP.Net Core 1.0 with the support of
GruntJS. Basically, GruntJS is a task runner that enables you to build front-end
resources like the JavaScript and CSS files. Thousands of GruntJS plugins are
available that helps you to handle variety of tasks. Roughly stating, at present
there are 4,334 plugins listed in the GruntJS plugin repository.
Further, in order to support GruntJS, Microsoft needed to support
two new package managers-
 Firstly, as the GruntJS plugins are distributed as NPM packages, so
Microsoft added support for NPM (Node Packet Manager) Packages.
 Next thing, due to a number of client-side resources, like the jQuery,
Twitter Bootstrap, Polymer and AngularJS as well, these were distributed
through Bower and thus Microsoft added a support for Bower.
Ultimately, the main thing to consider is that you can run the
GruntJS using different plugins from the NPM as well as client
resources from Bower.
3) The MVC and Web API Specifics
 Unified MVC and Web API Controllers:
If you are a hard core ASP.Net developer, you must have an idea that the MVC
controllers and the Web API controllers were different in previous versions. For
MVC controller, System.Web.MVC.Controller base class was used and for Web
API controller System.Web.Http.ApiController base class was used.
In ASP.Net Core 1.0 version, instead of using two base classes, there is only
one Controller class treated as base class for both MVC and Web API
controllers- Microsoft.AspNet.Mvc.Controller class. As a result, it can be said
that in MVC 6, both MVC controllers and Web API controllers use the same
routes. So, you can either use convention-based routes or the attribute routes in
a project.
 View Components:
In the previous ASP.Net MVC versions, the subcontrollers were used which are
now replaced by the View Components. View Components are a great source
for rendering chunks of view which have a complex logic behind it, rather than a
whole response. As it includes the same separation-of-concerns and testability
benefits like that found between controller and view, you can solve any of the
problems that you find too complex to handle. Some of the best examples for
these view components can be login panel, shopping cart, dynamic navigation
menus, sidebar content on a typical blog, tag cloud, recently published articles
and many more. A particular view component is being derived from the
ViewComponent, by decorating the class with the [ViewComponent] attribute or
just by convention ending the class name with ViewComponent.
For an instance- a view component created for login panel that
would be displayed on every page must have following functionality:
 If user is not logged in, then login panel is rendered
 If user is in admin role, then admin panel is rendered
 If user is logged in, then the links to log out and manage account are
rendered.
Briefly stating, any complex module can be easily divided into several chunks as view
components, coded, tested and then successfully integrated with the whole programming
logic.
 Tag Helpers:
The Tag Helpers is one of the best features that enable the server-side code for
participating in creating as well as rendering the HTML elements in the Razor files. There
are a number of built-in Tag Helpers for carrying out common tasks, which includes
creating forms, loading assets, links and even more that are available in the public GitHub
repositories and NuGet packages.
4) Injecting Services: The ASP.Net Core 1.0 supports dependency injection into
views. This feature is more useful for some of the view-specific services that include data
required only for populating view elements or localization or separation of concerns
between controllers and views and many more. Majority of the data that your views display
must be passed in from the controller.
5) Performance Response Cache: The Response Cache refers to the cache-
related headers on the HTTP responses that is being made by ASP.Net MVC actions. It
helps you in specifying the cache responses for the client as well as intermediate or proxy
machines itself. Besides that, it reduces the number of request a client or proxy makes to
the web server.
There are three common directives for primary HTTP header caching, namely- public,
private, no-cache. Besides that, there are number of ResponseCache attributes that
includes- Duration, Location, NoStore, VaryByHeader, CacheProfileName and Order. All
these makes better performance for the ASP.Net modules.
6) Security- Enabling Cross-Origin Requests: In ASP.Net Core 1.0, the same-
origin policy is restricted where the browser security prevents a web page from making
AJAX requests while preventing malicious site from reading the sensitive data from
another site. As a result, it allows Cross Origin Resource Sharing.
The Cross Origin Resource Sharing (CORS) is a W3C standard that allows the server to
relax with same origin policy. With the help of CORS, a server can easily explicitly allow
some of the cross-origin requests and reject other unnecessary requests. Briefly stating-
CORS is safer and more flexible as well as compared to the earlier techniques.
This was the first impression and the main highlights of ASP.NET Core 1.0, we may get
more surprises once Microsoft releases ASP.NET core as it is still under development.

Weitere ähnliche Inhalte

Mehr von Azilen Technologies Pvt. Ltd.

[Step by-step guide] configure document generation functionality in ms dynami...
[Step by-step guide] configure document generation functionality in ms dynami...[Step by-step guide] configure document generation functionality in ms dynami...
[Step by-step guide] configure document generation functionality in ms dynami...Azilen Technologies Pvt. Ltd.
 
How to overcome operational challenges in getting consistent beacon behavior
How to overcome operational challenges in getting consistent beacon behaviorHow to overcome operational challenges in getting consistent beacon behavior
How to overcome operational challenges in getting consistent beacon behaviorAzilen Technologies Pvt. Ltd.
 
Realm mobile platform – explore real time data synchronization capabilities
Realm mobile platform – explore real time data synchronization capabilitiesRealm mobile platform – explore real time data synchronization capabilities
Realm mobile platform – explore real time data synchronization capabilitiesAzilen Technologies Pvt. Ltd.
 
A step by step guide to develop temperature sensor io t application using ibm...
A step by step guide to develop temperature sensor io t application using ibm...A step by step guide to develop temperature sensor io t application using ibm...
A step by step guide to develop temperature sensor io t application using ibm...Azilen Technologies Pvt. Ltd.
 
How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...
How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...
How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...Azilen Technologies Pvt. Ltd.
 
Server driven user interface (sdui) – framework for i os applications!
Server driven user interface (sdui) – framework for i os applications!Server driven user interface (sdui) – framework for i os applications!
Server driven user interface (sdui) – framework for i os applications!Azilen Technologies Pvt. Ltd.
 
How to integrate portlet as widget in liferay to any website application
How to integrate portlet as widget in liferay to any website applicationHow to integrate portlet as widget in liferay to any website application
How to integrate portlet as widget in liferay to any website applicationAzilen Technologies Pvt. Ltd.
 
iPad Application as Return Process Automation Solution for eCommerce Store
iPad Application as Return Process Automation Solution for eCommerce StoreiPad Application as Return Process Automation Solution for eCommerce Store
iPad Application as Return Process Automation Solution for eCommerce StoreAzilen Technologies Pvt. Ltd.
 
[Part 3] automation of home appliances using raspberry pi – all set to automa...
[Part 3] automation of home appliances using raspberry pi – all set to automa...[Part 3] automation of home appliances using raspberry pi – all set to automa...
[Part 3] automation of home appliances using raspberry pi – all set to automa...Azilen Technologies Pvt. Ltd.
 
Rfid systems for asset management — the young technology on its winning path
Rfid systems for asset management — the young technology on its winning pathRfid systems for asset management — the young technology on its winning path
Rfid systems for asset management — the young technology on its winning pathAzilen Technologies Pvt. Ltd.
 
[Part 2] automation of home appliances using raspberry pi – implementation of...
[Part 2] automation of home appliances using raspberry pi – implementation of...[Part 2] automation of home appliances using raspberry pi – implementation of...
[Part 2] automation of home appliances using raspberry pi – implementation of...Azilen Technologies Pvt. Ltd.
 
[Part 1] automation of home appliances using raspberry pi – software installa...
[Part 1] automation of home appliances using raspberry pi – software installa...[Part 1] automation of home appliances using raspberry pi – software installa...
[Part 1] automation of home appliances using raspberry pi – software installa...Azilen Technologies Pvt. Ltd.
 

Mehr von Azilen Technologies Pvt. Ltd. (20)

Software Product Development for Startups.pdf
Software Product Development for Startups.pdfSoftware Product Development for Startups.pdf
Software Product Development for Startups.pdf
 
How Chatbots Empower Healthcare Ecosystem?
How Chatbots Empower Healthcare Ecosystem?How Chatbots Empower Healthcare Ecosystem?
How Chatbots Empower Healthcare Ecosystem?
 
[Step by-step guide] configure document generation functionality in ms dynami...
[Step by-step guide] configure document generation functionality in ms dynami...[Step by-step guide] configure document generation functionality in ms dynami...
[Step by-step guide] configure document generation functionality in ms dynami...
 
How to overcome operational challenges in getting consistent beacon behavior
How to overcome operational challenges in getting consistent beacon behaviorHow to overcome operational challenges in getting consistent beacon behavior
How to overcome operational challenges in getting consistent beacon behavior
 
Liferay dxp – the good, the bad and the ugly
Liferay dxp – the good, the bad and the uglyLiferay dxp – the good, the bad and the ugly
Liferay dxp – the good, the bad and the ugly
 
Realm mobile platform – explore real time data synchronization capabilities
Realm mobile platform – explore real time data synchronization capabilitiesRealm mobile platform – explore real time data synchronization capabilities
Realm mobile platform – explore real time data synchronization capabilities
 
A step by step guide to develop temperature sensor io t application using ibm...
A step by step guide to develop temperature sensor io t application using ibm...A step by step guide to develop temperature sensor io t application using ibm...
A step by step guide to develop temperature sensor io t application using ibm...
 
How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...
How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...
How to create an angular 2.0 application in liferay dxp to fetch the ootb adv...
 
Register Virtual Device and analyze the device data
Register Virtual Device and analyze the device dataRegister Virtual Device and analyze the device data
Register Virtual Device and analyze the device data
 
Analytics and etl based bi solutions
Analytics and etl based bi solutionsAnalytics and etl based bi solutions
Analytics and etl based bi solutions
 
Advanced risk management & mitigation system
Advanced risk management & mitigation systemAdvanced risk management & mitigation system
Advanced risk management & mitigation system
 
Server driven user interface (sdui) – framework for i os applications!
Server driven user interface (sdui) – framework for i os applications!Server driven user interface (sdui) – framework for i os applications!
Server driven user interface (sdui) – framework for i os applications!
 
How to integrate portlet as widget in liferay to any website application
How to integrate portlet as widget in liferay to any website applicationHow to integrate portlet as widget in liferay to any website application
How to integrate portlet as widget in liferay to any website application
 
A walkthrough of recently held wwdc17
A walkthrough of recently held wwdc17A walkthrough of recently held wwdc17
A walkthrough of recently held wwdc17
 
How wearable devices are changing our lives
How wearable devices are changing our livesHow wearable devices are changing our lives
How wearable devices are changing our lives
 
iPad Application as Return Process Automation Solution for eCommerce Store
iPad Application as Return Process Automation Solution for eCommerce StoreiPad Application as Return Process Automation Solution for eCommerce Store
iPad Application as Return Process Automation Solution for eCommerce Store
 
[Part 3] automation of home appliances using raspberry pi – all set to automa...
[Part 3] automation of home appliances using raspberry pi – all set to automa...[Part 3] automation of home appliances using raspberry pi – all set to automa...
[Part 3] automation of home appliances using raspberry pi – all set to automa...
 
Rfid systems for asset management — the young technology on its winning path
Rfid systems for asset management — the young technology on its winning pathRfid systems for asset management — the young technology on its winning path
Rfid systems for asset management — the young technology on its winning path
 
[Part 2] automation of home appliances using raspberry pi – implementation of...
[Part 2] automation of home appliances using raspberry pi – implementation of...[Part 2] automation of home appliances using raspberry pi – implementation of...
[Part 2] automation of home appliances using raspberry pi – implementation of...
 
[Part 1] automation of home appliances using raspberry pi – software installa...
[Part 1] automation of home appliances using raspberry pi – software installa...[Part 1] automation of home appliances using raspberry pi – software installa...
[Part 1] automation of home appliances using raspberry pi – software installa...
 

Kürzlich hochgeladen

5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 

Kürzlich hochgeladen (20)

5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 

Revealing the “Hot-Spots” Of ASP.Net Core 1.0 – The Future of ASP Technology

  • 1. Revealing the “Hot-Spots” Of ASP.Net Core 1.0 – The Future of ASP Technology In the world of competition, Microsoft has always chosen to be a step ahead. This time Microsoft has taken a move towards going open source. The .Net development field is buzzing with the new version of .NET. The new version was supposed to be called as ASP.NET 5, but as this version would be complete restructuring of the framework instead of upgrading, the name has been renamed to ASP.NET Core 1.0. This version comes with lot of performance improvements and new features. So, let us have a look at the ASP.NET Core 1.0 Roadmap which is queued up for the further release. What’s new with ASP.Net Core 1.0?
  • 2. You must be excited to know its features, right? So, presenting below top features of the future release ASP.Net Core 1.0: 1) Net going to be compatible with OSX and Linux: Isn’t it great news?? I think, you must have never thought that ASP.Net could run on any other platform except Windows. But this is true!! First time in the history of the ASP.Net, you can successfully run ASP.Net Core 1.0 applications on OSX and Linux along with Windows. Enabling the ASP.Net Core 1.0 on these three platforms- Windows, OSX and Linux can help you to change everything. The developers and designers are able to build their apps with ASP.Net Core 1.0 while using their favourite development environment like the Sublime Text and WebStorm when working with ASP.Net Apps. 2) GruntJS, NPM and Bower Support: There are a number of things to explore with the front-end development in ASP.Net Core 1.0 with the support of GruntJS. Basically, GruntJS is a task runner that enables you to build front-end resources like the JavaScript and CSS files. Thousands of GruntJS plugins are available that helps you to handle variety of tasks. Roughly stating, at present there are 4,334 plugins listed in the GruntJS plugin repository. Further, in order to support GruntJS, Microsoft needed to support two new package managers-  Firstly, as the GruntJS plugins are distributed as NPM packages, so Microsoft added support for NPM (Node Packet Manager) Packages.  Next thing, due to a number of client-side resources, like the jQuery, Twitter Bootstrap, Polymer and AngularJS as well, these were distributed through Bower and thus Microsoft added a support for Bower. Ultimately, the main thing to consider is that you can run the GruntJS using different plugins from the NPM as well as client resources from Bower. 3) The MVC and Web API Specifics  Unified MVC and Web API Controllers: If you are a hard core ASP.Net developer, you must have an idea that the MVC controllers and the Web API controllers were different in previous versions. For MVC controller, System.Web.MVC.Controller base class was used and for Web
  • 3. API controller System.Web.Http.ApiController base class was used. In ASP.Net Core 1.0 version, instead of using two base classes, there is only one Controller class treated as base class for both MVC and Web API controllers- Microsoft.AspNet.Mvc.Controller class. As a result, it can be said that in MVC 6, both MVC controllers and Web API controllers use the same routes. So, you can either use convention-based routes or the attribute routes in a project.  View Components: In the previous ASP.Net MVC versions, the subcontrollers were used which are now replaced by the View Components. View Components are a great source for rendering chunks of view which have a complex logic behind it, rather than a whole response. As it includes the same separation-of-concerns and testability benefits like that found between controller and view, you can solve any of the problems that you find too complex to handle. Some of the best examples for these view components can be login panel, shopping cart, dynamic navigation menus, sidebar content on a typical blog, tag cloud, recently published articles and many more. A particular view component is being derived from the ViewComponent, by decorating the class with the [ViewComponent] attribute or just by convention ending the class name with ViewComponent. For an instance- a view component created for login panel that would be displayed on every page must have following functionality:  If user is not logged in, then login panel is rendered  If user is in admin role, then admin panel is rendered  If user is logged in, then the links to log out and manage account are rendered. Briefly stating, any complex module can be easily divided into several chunks as view components, coded, tested and then successfully integrated with the whole programming logic.
  • 4.  Tag Helpers: The Tag Helpers is one of the best features that enable the server-side code for participating in creating as well as rendering the HTML elements in the Razor files. There are a number of built-in Tag Helpers for carrying out common tasks, which includes creating forms, loading assets, links and even more that are available in the public GitHub repositories and NuGet packages. 4) Injecting Services: The ASP.Net Core 1.0 supports dependency injection into views. This feature is more useful for some of the view-specific services that include data required only for populating view elements or localization or separation of concerns between controllers and views and many more. Majority of the data that your views display must be passed in from the controller. 5) Performance Response Cache: The Response Cache refers to the cache- related headers on the HTTP responses that is being made by ASP.Net MVC actions. It helps you in specifying the cache responses for the client as well as intermediate or proxy machines itself. Besides that, it reduces the number of request a client or proxy makes to the web server. There are three common directives for primary HTTP header caching, namely- public, private, no-cache. Besides that, there are number of ResponseCache attributes that includes- Duration, Location, NoStore, VaryByHeader, CacheProfileName and Order. All these makes better performance for the ASP.Net modules. 6) Security- Enabling Cross-Origin Requests: In ASP.Net Core 1.0, the same- origin policy is restricted where the browser security prevents a web page from making AJAX requests while preventing malicious site from reading the sensitive data from another site. As a result, it allows Cross Origin Resource Sharing. The Cross Origin Resource Sharing (CORS) is a W3C standard that allows the server to relax with same origin policy. With the help of CORS, a server can easily explicitly allow some of the cross-origin requests and reject other unnecessary requests. Briefly stating- CORS is safer and more flexible as well as compared to the earlier techniques.
  • 5. This was the first impression and the main highlights of ASP.NET Core 1.0, we may get more surprises once Microsoft releases ASP.NET core as it is still under development.