Session Dot Net Framework Overview
-
Upload
saurabh-chopra -
Category
Documents
-
view
224 -
download
0
Transcript of Session Dot Net Framework Overview
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 1/48
Microsoft .NetMicrosoft .Net
TechnologyTechnology
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 2/48
AgendaAgenda ± ± Session 1Session 1
Evolution of the WebEvolution of the Web
.Net Framework Overview.Net Framework Overview
Evolution of .Net FrameworkEvolution of .Net Framework
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 3/48
Evolution of Web «Evolution of Web «
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 4/48
Web PhaseWeb Phase -- 11
WebWeb Browser Browser
WebWeb Server Server
HTTPHTTP
Text Information (Text File)Text Information (Text File)
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 5/48
Web PhaseWeb Phase -- 22
HTML + Text Information (HTMLHTML + Text Information (HTMLFile)File) ± ± Static PagesStatic Pages
Browser understands HTMLBrowser understands HTML
HTMLHTML ± ± Layout of the PageLayout of the Page
CSSCSS ± ± AppearanceAppearance
Images, Sound, LinksImages, Sound, Links
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 6/48
Web PhaseWeb Phase -- 33 Dynamic WebDynamic Web
Static PagesStatic Pages ± ± Contains Data (Information)Contains Data (Information) ± ± HTML FilesHTML Files
Dynamic PagesDynamic Pages ± ± Contain Code (Server Contain Code (Server--side Code)side Code) Executes when the request comes from the browser Executes when the request comes from the browser
Reads user¶s request (HTTP Request Packet that browser sendsReads user¶s request (HTTP Request Packet that browser sendsto the server)to the server)
Access Database, Filter the data, etc.Access Database, Filter the data, etc.
After generating the response (HTML Document) it stopsAfter generating the response (HTML Document) it stops
Web Server (IIS, Tomcat, etc.) handles the connectivity withWeb Server (IIS, Tomcat, etc.) handles the connectivity withthe Web Browser the Web Browser
HTTP Runtime gets connected to web server, obtains theHTTP Runtime gets connected to web server, obtains therequest from the Web Server and executes thee code.request from the Web Server and executes thee code.
Threads are used to handle multiple request.Threads are used to handle multiple request.
Maintains cache based inputs (Sliding Cache Expiration)Maintains cache based inputs (Sliding Cache Expiration)
Health MonitoringHealth Monitoring
To Store the data on User specific basis Session was used.To Store the data on User specific basis Session was used.
SecuritySecurity
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 7/48
HTTP REQUEST AND RESPONSE
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 8/48
Browser Browser
After Browser receives HTML document itAfter Browser receives HTML document itcreate HTML DOM Tree and then DOM Treecreate HTML DOM Tree and then DOM Treeto render the information. If the DOM tree isto render the information. If the DOM tree ismodified the rendering of that part in themodified the rendering of that part in the
browser window is redone.browser window is redone. Using JavaScript running in the browser theUsing JavaScript running in the browser the
DOM tree can be updated.DOM tree can be updated.
HTML DOM Tree is programmable.HTML DOM Tree is programmable.
Object of DOM can fire events on user Object of DOM can fire events on user interactions.interactions.
DOMAPI (set of functions to interact withDOMAPI (set of functions to interact withthe DOM Tree)the DOM Tree) ± ± Inconsistent AcrossInconsistent AcrossBrowser Browser
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 9/48
Web ProgrammingWeb Programming
Classical Web ProgrammingClassical Web Programming Every Response was creating new DOM TreeEvery Response was creating new DOM Tree
AJAX Programming (Asynchronous JavaScript andAJAX Programming (Asynchronous JavaScript andXML Programming)XML Programming)
Server <Server <--> XmlHttpRequest Object <> XmlHttpRequest Object <--> JavaScript <> JavaScript <-->>DOM TreeDOM Tree
Saved Server Processing Time, Saved Bandwidth andSaved Server Processing Time, Saved Bandwidth andProvided Better User ExperienceProvided Better User Experience
AsynchronousAsynchronous
Difficult to Debug, Difficult to understand the codeDifficult to Debug, Difficult to understand the codeconstruct, Difficult to interact with the DOMAPI, Lack of construct, Difficult to interact with the DOMAPI, Lack of and Difficult to create Data Visualization, No threading, Noand Difficult to create Data Visualization, No threading, NoAdvanced Libraries like Reflection, LINQ, CollectionAdvanced Libraries like Reflection, LINQ, CollectionClasses, Cryptography,Classes, Cryptography, etcetc, Different than traditional, Different than traditionalObjectObject--Oriented ProgrammingOriented Programming
HTML5 (Animation, Transformation, Drawing, VideoHTML5 (Animation, Transformation, Drawing, VideoPlayback, etc.)Playback, etc.)
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 10/48
AJAXAJAX
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 11/48
Evolution of InternetEvolution of Internet
ConnectivityData
ExchangeInteroperability
TCP/IP XML WebServices
Internet
Revolution
Data
Revolution
Process
Revolution
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 12/48
Microsoft .Net FrameworkMicrosoft .Net FrameworkOverview «Overview «
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 13/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 14/48
What is .NET?
Completely new model for buildingCompletely new model for buildingsystems on Windows family of systems on Windows family of operating systems as well as nonoperating systems as well as non--
Microsoft OS such as Mac OS x2,Microsoft OS such as Mac OS x2,LinuxLinux
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 15/48
What is .NET?
.NET is a platform that provides a.NET is a platform that provides astandardized set of services.standardized set of services.
It¶s just like Windows, exceptIt¶s just like Windows, except
distributed over the Internet.distributed over the Internet. It exports a common interface so thatIt exports a common interface so that
it¶s programs can be run on anyit¶s programs can be run on anysystem that supports .NET.system that supports .NET.
A specific software frameworkA specific software framework Includes a common runtimeIncludes a common runtime
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 16/48
What is .NET?
Core features areCore features are Comprehensive interoperability : ExistingComprehensive interoperability : Existing
COM binaries canCOM binaries can interopinterop with newer with newer .Net.Netbinariesbinaries
Complete and total language integration.Complete and total language integration.
Cross language inheritanceCross language inheritance
Cross language exception handlingCross language exception handling
Cross language debuggingCross language debugging
Common runtime engine shared by allCommon runtime engine shared by all .Net.Netaware languages.aware languages.
Comprehensive base class librariesComprehensive base class libraries
Simplified deployment modelSimplified deployment model ± ± under under .Net.Netthere is no need to register a binary inthere is no need to register a binary in
registryregistry
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 17/48
.NET Framework.NET Framework
Programming model for .NETProgramming model for .NET
Platform for running .NET managedPlatform for running .NET managedcode in a virtual machinecode in a virtual machine
Provides a very good environment toProvides a very good environment todevelop networked applications anddevelop networked applications andWeb ServicesWeb Services
Provides programming API andProvides programming API andunified languageunified language--independentindependentdevelopment frameworkdevelopment framework
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 18/48
.NET Framework.NET Framework
Building blocks of .Net PlatformBuilding blocks of .Net Platform(CLR + CTS + CLS)(CLR + CTS + CLS)
CLRCLR Runtime layer of .Net is referredRuntime layer of .Net is referredas Common Language Runtime.as Common Language Runtime.
Primary goal isPrimary goal is ± ±
To locate, load and manage .NetTo locate, load and manage .Nettypestypes
Memory ManagementMemory Management Security ChecksSecurity Checks
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 19/48
.NET Framework.NET Framework
CTSCTS Common Type System ,Common Type System ,specifies all possible data types andspecifies all possible data types andprogramming constructs supported byprogramming constructs supported byruntime.runtime.
CLSCLS Common LanguageCommon LanguageSpecification, defines a subset of Specification, defines a subset of common types and programmingcommon types and programmingconstructs that all .Net programmingconstructs that all .Net programminglanguage can agree on.language can agree on.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 20/48
.NET Framework.NET Framework
Base Class LibrariesBase Class Libraries Encapsulates various primitivesEncapsulates various primitivessuch as threads, file I/O, graphicalsuch as threads, file I/O, graphical
rendering. They define types whichrendering. They define types whichfurther facilitate DB access, XMLfurther facilitate DB access, XMLmanipulation, constructions of GUImanipulation, constructions of GUIetc.etc.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 21/48
.NET Framework.NET Framework
Common Language RuntimeCommon Language Runtime
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
CLR manages code executionCLR manages code executionat runtimeat runtime
Memory management, threadMemory management, threadmanagement, etc.management, etc.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 22/48
.NET Framework.NET Framework
Base Class LibraryBase Class Library
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
.NET Framework (Base Class Library).NET Framework (Base Class Library)
ObjectObject--oriented collection of oriented collection of reusable typesreusable types
Collections, I/O, Strings, «Collections, I/O, Strings, «
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 23/48
.NET Framework.NET Framework
Data Access Layer Data Access Layer
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
.NET Framework (Base Class Library).NET Framework (Base Class Library)
ADO .NET and XMLADO .NET and XML
Access relational databasesAccess relational databases
Disconnected data modelDisconnected data model
Work with XMLWork with XML
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 24/48
.NET Framework.NET Framework
ASP.NET & Windows FormsASP.NET & Windows Forms
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
.NET Framework (Base Class Library).NET Framework (Base Class Library)
ADO .NET and XMLADO .NET and XML
ASP .NETASP .NETWeb Forms Web ServicesWeb Forms Web Services
Mobile Internet Toolkit Mobile Internet Toolkit
WindowsWindows
FormsForms
Create application¶s frontCreate application¶s front--endend ± ±WebWeb--based user interface,based user interface,Windows GUI, Web services, «Windows GUI, Web services, «
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 25/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 26/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 27/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 28/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 29/48
Evolution of .Net Framework «Evolution of .Net Framework «
Tohelp protectyour privacy, PowerPointprevented thisexternalpicturefrom being automatically downloaded.Todownload and display thispicture, click Optionsin theMessageBar, and then click Enableexternalcontent.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 30/48
Evolution of .Net Framework «Evolution of .Net Framework «
Each version of the .NET Framework contains thecommon language runtime (CLR) as its corecomponent, and includes additional components
such as the base class libraries and other managed libraries. This topic describes the keycomponents of the .NET Framework versions,provides information about the underlying CLR
versions and associated developmentenvironments, and identifies the versions that areinstalled by Windows.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 31/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 32/48
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 33/48
What's New in the .NET Framework 3.5
In this version Microsoft enhanced features of .NET Framework Version 3.0 and add some new too. which get updated or added by
Microsoft are:
.NET Compact Framework
ASP.NET
Add-Ins and Extensibility
Common Language Runtime
Cryptography
Networking
Windows Communication Foundation
Windows Presentation Foundation
Windows Workflow Foundation
Windows Forms
LINQ Expression Trees
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 34/48
1- .NET Compact Framework
. NET Compact Framework helps in the develop contents for a Pocket
PC or a Smartphone. The .NET Compact Framework version 3.5expands support for distributed mobile applications by includes:
WCF ,LINQ
Improvements made to Windows Forms controls.
SoundPlayer to play multiple sounds.
Supports Compression through the System.IO.Compressionnamespace .
Supports the CLR Profiler
Improvements have been made to logging features
The class library documentation improved .
Strong names that are greater than 1,024 bytes are nowsupported ,etc.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 35/48
2- ASP.NET
ASP.NET 3.5, ASP.NET AJAX is integrated into the .NET Framework.
ASP.NET include new data control ListView and DataPager along witha new datasource control called the LinqDataSource that exposesLanguage Integrated Query (LINQ) to Web developers through theASP.NET data source control architectures.
3- Add-Ins and Extensibility
The System.AddIn.dll assembly in the .NET Framework 3.5 provides powerful and flexible support to developers of extensible
applications. It introduces a new architecture and model that helpsdevelopers with the initial work to add extensibility to an applicationand by ensuring that their extensions continue working as the hostapplication changes.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 36/48
4- Common Language Runtime
Common Language Runtime used in .NET 3.5 has improved
and its feature also gets updated.
Which are Collections, Diagnostics, I/O and Pipes, GarbageCollection, Reflection and Reflection Emit in Partial Trust,Threading Better Reader n Writer Lock, ThreadPoolPerformance Enhancements, Time Zone Improvements,TimeZoneInfo and DateTimeOffset
5- Cryptography
To improve security .NET 3.5 updated with some features. There are
new cryptography classes for verifying and obtaining information
about manifest signatures for ClickOnce applications. The .NET
Framework 3.5 supports the Suite B set of cryptographic algorithms
published by the National Security Agency (NSA).
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 37/48
6- Networking
Several features in networking also get improved in .NET3.5. Peer to peer networking is a serverless networkingtechnology that allows several network devices to shareresources and communicate directly with each other isget improved. The Socket class has been enhanced for use by applications that use asynchronous network I/Oto achieve the highest performance. These enhancements
were specifically designed for network server applications that require the high-performance.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 38/48
7-Windows Communication Foundation and windows Workflow Foundation
The .NET Framework 3.5 unifies the Windows WorkflowFoundation (WF) and Windows CommunicationFoundation (WCF) frameworks so that you can use WFas a way to author WCF services or expose your existingWF workflow as a service. This enables you to createservices that can be persisted, can easily transfer data inand out of a workflow, and can enforce application-level
protocols.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 39/48
8- Windows Presentation Foundation
In the .NET Framework 3.5, Windows Presentation Foundation
contains changes and improvements in numerous areas, includingversioning, the application model, data binding, controls,documents, annotations, and 3-D UI elements.
9- Windows Forms
Windows Forms has enhanced to host Windows PresentationFoundation (WPF) controls and content together with WindowsForms controls. You can also open WPF windows from a WindowsForm. Client application services are new in the .NET Framework
3.5 and enable Windows-based applications (including WindowsForms and Windows Presentation Foundation applications) to easilyaccess the ASP.NET login, roles, and profile services. Theseservices enable you to authenticate users and retrieve user roles andapplication settings from a shared server
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 40/48
10- Language-Integrated Query (LINQ)
Language-Integrated Query (LINQ) is a new feature inVisual Studio 2008 and the .NET Framework 3.5.LINQ adds native data querying capability to C# and
VB.NET along with the compiler and Intellisensesupport. This technology can be extended to support potentially any kind of data store. The .NETFramework 3.5 includes LINQ provider assemblies thatenable the use of LINQ for querying .NET Framework
collections, SQL Server databases, ADO.NET Datasets,and XML documents.
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 41/48
11- Expression Trees
Expression trees are new in the .NET Framework 3.5, and provide a way to represent language-level code in theform of data. Expression trees are used extensively inLINQ queries that target remote data sources such as aSQL database. These queries are represented as
expression trees, and this representation enables query providers to examine them and translate them into adomain-specific query language.
Visual C#, Visual C++ 2008,Visual Basic Language Three
Microsoft programming languages explicitly target the.NET Framework so to achive this some new changes arecarried out for it
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 42/48
Comparison between
J2EE and .NET
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 43/48
Comparison between J2EE and .NET Architectures
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 44/48
J2EE and .NET
Execution Engine
J2EE
Java source code compiles into machine-independentbyte code
Runtime Environment : JVM
.NET
Any compliant language compiles into MSIL
Runtime environment : CLR
Both JVM and CLR ,support services, such as codeverification, memory management via garbage
collection, and code security
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 45/48
J2EE and .NET
Cross Platform Portability
J2EE
Platform Independent
JDK should exist on target machine
.NET
Supports Windows platformCLR should exist on target machine
Can support other platforms provided it has its ownJIT complier
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 46/48
J2EE and .NET
Language Support
J2EETied to Java
Supports other languages via interface technology
.NET
Language independent
Supports any language if mapping exists from that
language to IL
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 47/48
J2EE and .NET
Tools Support
J2EE
Can employ any number of tools
Pro :Developer has a great deal of choice
Con :Difficulty in choosing a right tool for a given job
.NET
Visual Studio.NET, single IDE for building anapplication
8/3/2019 Session Dot Net Framework Overview
http://slidepdf.com/reader/full/session-dot-net-framework-overview 48/48
AssignmentAssignment
What changes in the transition fromWhat changes in the transition from
.Net.Net 2.02.0 .Net.Net 3.03.0 .Net.Net 3.53.5
What is the driving force behindWhat is the driving force behindthe changes inthe changes in .Net.Net 2.02.0 .Net.Net 3.03.0 .Net.Net 3.53.5