SlideShare uma empresa Scribd logo
1 de 27
BY-Teach4u.in
The .NET Framework
 What is Microsoft .NET?
 A programming model: CLR + Classes
 XML Web services
 Server and Client software and tools
Common Language Runtime (CLR)
 It’s a VM (Java-like) on which any (supported)
language can run.
 Why a VM?
 Memory Protection
 Cross-language
 Support for strong-typing across languages (the data are
typed)
 Thread support
 JIT compilation in the VM
Languages in CLR
 Language of choice is C# (“C-sharp”) a Java-like language
 No inner classes
 Better type checking
 Other languages will run on CLR, but only within the CLR
constraints
 Visual Basic, JScript are full fledged CLR languages
 For example, only C++ that is VM-safe will run
 That subset looks much like C#
 Under CLR, all languages get object features
 Inheritance used extensively
 Every language gets constructors
Languages compile to MSIL
 Languages compile to MSIL (Microsoft Intermediate
Language)
 Can you say “bytecodes”?
 MSIL is shipped in portable executable (PE) units
 Can you say .class files or applets?
 An application is made up of assemblies
Assemblies
 In general, a static
assembly can consist of
four elements:
 The assembly manifest,
which contains assembly
metadata.
 Type metadata.
 Microsoft intermediate
language (MSIL) code
that implements the
types.
 A set of resources.
Assemblies can be spread across .NET
Assemblies are the security unit
 Each assembly has a set of corresponding grants
 Each grant allows certain permissions
 DnsPermission, Environment, FileDialog, FileIO,
IsolatedStorage, Reflection, Registry, Security, UI,
WebPermission, SocketPermission
 The set of grants establishes a security policy
Class Library
 Data classes support persistent data management and
include SQL classes.
 XML classes enable XML data manipulation and XML
searching and translations.
 Windows Forms support development of Windows
GUI applications across CLR
 Web Forms include classes that enable you to rapidly
develop web GUI applications.
System.Object
 Public methods:
 Equals
 GetHashCode
 GetType
 ToString
 Overriding inherited behaviors is common
Web, Windows, Whatever
 Part of the idea is to smooth transitions between
Windows and Web
 Web interfaces become easier for Windows developers
 Windows apps become .NET Web-based apps
Data <-> XML, Everywhere
 All CLR data can be serialized
to XML
 All XML can be expanded into
CLR data
 Thus, anything can be shipped
around on the Web
 Typing through XML Schema
XML Schema
<xsd:complexType name="Person">
<xsd:sequence>
<xsd:choice>
<xsd:element name="name" type="xsd:string"
xsi:nillable="true" />
<xsd:element name="id" type="xsd:string" />
</xsd:choice>
<xsd:any processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AgedPerson">
<xsd:complexContent mixed="false">
<xsd:extension base="target:Person">
<xsd:choice>
<xsd:element name="age" type="xsd:double" />
<xsd:element name="timeOnEarth" type="xsd:double" />
</xsd:choice>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="don" type="target:Person" />
Example Instance
<ns:don
xmlns:ns="uuid:048b2fa1-d557-473f-ba4c-
acee78fe3f7d"
>
<name>Don Box</name>
<niceStuffForDon/>
</ns:don>
Second Example Instance
<ns:don
xmlns:ns="uuid:048b2fa1-d557-473f-ba4c-acee78fe3f7d"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns:AgedPerson"
>
<name>Don Box</name>
<niceStuffForDon/>
<age>26</age>
</ns:don>
A Simpler Schema
<element name="Book">
<complexType>
<element name="author" type="xsd:string"/>
<element name="preface" type="xsd:string"/>
<element name="intro" type="xsd:string"/>
</complexType>
</e:Book>
Another Example Instance
<e:Book>
<author>Henry Ford</author>
<preface>Prefatory text</preface>
<intro>This is a book.</intro>
</e:Book>
XML Schema Defined Types
Class Library Data Hierarchy
Reading in XML Data
XmlReader reader
= new
XmlTextReader("http://foo.com/don.xsd");
XmlSchema schema = XmlSchema.Load(reader, null);
schema.Compile(null); // turn xml into objects
reader.Close();
ALL Interprocess Communication via SOAP
 ALL Interprocess communication (across network or
on same machine) is through SOAP
 Simple Object Access Protocol
 It’s a way of exchanging data and even calling other
methods/threads, all via XML and plain old HTTP
requests
Example SOAP Request
POST /StockQuote HTTP/1.1
Host: www.stockquoteserver.com
Content-Type: text/xml; charset="utf-8"
Content-Length: nnnn
SOAPAction: "Some-URI"
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<m:GetLastTradePrice xmlns:m="Some-URI">
<symbol>DIS</symbol>
</m:GetLastTradePrice>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Content-Length: nnnn
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<SOAP-ENV:Body>
<m:GetLastTradePriceResponse xmlns:m="Some-URI">
<Price>34.5</Price>
</m:GetLastTradePriceResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
ASP.NET
 ASP =>
Active Server Pages
 Put most of the computation
in the server
 Very simple model to use
 ADO.NET is the database
connection part
Calling Web Services
 Any class can be converted into an XML Web Service with just a
few lines of code, and can be called by any SOAP client.
Take-away lessons
 VM’s are important
 Even Microsoft thinks so
 Distributed apps are important, but to do so requires
standard protocols
 Ways of serializing data
 Ways of doing RPC
Limitations of the .NET Framework
 What if you’re not on the network?
 Maybe that’s not an issue?
 Mapping between XML and any object is hard
 Any object is controlled by compiler.
XML can be written by anybody with a text editor.
 There’s a whole bunch of class support for modified
serializers and compilers

Mais conteúdo relacionado

Mais procurados

Web services wsdl
Web services wsdlWeb services wsdl
Web services wsdlKhan625
 
.Net framework architecture
.Net framework architecture.Net framework architecture
.Net framework architectureFad Zulkifli
 
Architecture in .net
Architecture in .netArchitecture in .net
Architecture in .netLarry Nung
 
SOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolSOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolMasud Rahman
 
Developing Revolutionary Web Applications using Comet and Ajax Push
Developing Revolutionary Web Applications using Comet and Ajax PushDeveloping Revolutionary Web Applications using Comet and Ajax Push
Developing Revolutionary Web Applications using Comet and Ajax PushDoris Chen
 
An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST Ram Awadh Prasad, PMP
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolAnushka Patil
 
Mule compatible technologies
Mule compatible technologiesMule compatible technologies
Mule compatible technologieshimajareddys
 
ASP.NET 01 - Introduction
ASP.NET 01 - IntroductionASP.NET 01 - Introduction
ASP.NET 01 - IntroductionRandy Connolly
 
Multi-Process JavaScript Architectures
Multi-Process JavaScript ArchitecturesMulti-Process JavaScript Architectures
Multi-Process JavaScript ArchitecturesMark Trostler
 
Drupal And Flash Platform hybrid applications
Drupal And Flash Platform hybrid applicationsDrupal And Flash Platform hybrid applications
Drupal And Flash Platform hybrid applicationsJosh Kopel
 
UltraESB - Advanced services
UltraESB - Advanced servicesUltraESB - Advanced services
UltraESB - Advanced servicesAdroitLogic
 
introduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationintroduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationredaxe12
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligetiNaveen Kumar Veligeti
 
Introduction to WSO2 ESB Pass-Through Transport
Introduction to WSO2 ESB Pass-Through TransportIntroduction to WSO2 ESB Pass-Through Transport
Introduction to WSO2 ESB Pass-Through TransportChanaka Fernando
 

Mais procurados (20)

Web services wsdl
Web services wsdlWeb services wsdl
Web services wsdl
 
.Net framework architecture
.Net framework architecture.Net framework architecture
.Net framework architecture
 
Architecture in .net
Architecture in .netArchitecture in .net
Architecture in .net
 
Lecture 3 soap
Lecture 3 soapLecture 3 soap
Lecture 3 soap
 
SOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolSOAP--Simple Object Access Protocol
SOAP--Simple Object Access Protocol
 
Developing Revolutionary Web Applications using Comet and Ajax Push
Developing Revolutionary Web Applications using Comet and Ajax PushDeveloping Revolutionary Web Applications using Comet and Ajax Push
Developing Revolutionary Web Applications using Comet and Ajax Push
 
An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST
 
Web services
Web servicesWeb services
Web services
 
Mule: JSON to Object
Mule: JSON to ObjectMule: JSON to Object
Mule: JSON to Object
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access Protocol
 
Mule compatible technologies
Mule compatible technologiesMule compatible technologies
Mule compatible technologies
 
ASP.NET 01 - Introduction
ASP.NET 01 - IntroductionASP.NET 01 - Introduction
ASP.NET 01 - Introduction
 
Multi-Process JavaScript Architectures
Multi-Process JavaScript ArchitecturesMulti-Process JavaScript Architectures
Multi-Process JavaScript Architectures
 
Drupal And Flash Platform hybrid applications
Drupal And Flash Platform hybrid applicationsDrupal And Flash Platform hybrid applications
Drupal And Flash Platform hybrid applications
 
Webservice Testing
Webservice TestingWebservice Testing
Webservice Testing
 
UltraESB - Advanced services
UltraESB - Advanced servicesUltraESB - Advanced services
UltraESB - Advanced services
 
Vm transport
Vm transportVm transport
Vm transport
 
introduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationintroduction to Windows Comunication Foundation
introduction to Windows Comunication Foundation
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
 
Introduction to WSO2 ESB Pass-Through Transport
Introduction to WSO2 ESB Pass-Through TransportIntroduction to WSO2 ESB Pass-Through Transport
Introduction to WSO2 ESB Pass-Through Transport
 

Destaque

17th april,2015 daily global rice e newsletter by riceplus magazine
17th april,2015 daily global rice e newsletter by riceplus magazine17th april,2015 daily global rice e newsletter by riceplus magazine
17th april,2015 daily global rice e newsletter by riceplus magazineRiceplus Magazine
 
100 photos de femmes parfaites
100 photos de femmes parfaites100 photos de femmes parfaites
100 photos de femmes parfaitesRenée Gasser
 
My Professional Persona Project
My Professional Persona Project My Professional Persona Project
My Professional Persona Project Chelsea Frederick
 
Muawiyah bin abu sufyan so called katib e wahi
Muawiyah bin abu sufyan so called katib e wahiMuawiyah bin abu sufyan so called katib e wahi
Muawiyah bin abu sufyan so called katib e wahiHaq Haider
 
Top 10 cars that i think define cool
Top 10 cars that i think define coolTop 10 cars that i think define cool
Top 10 cars that i think define coolJonathangeorge
 
Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015
Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015
Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015Elizabeth Lucio
 
Roteiro pacto unidade 7
Roteiro pacto   unidade 7Roteiro pacto   unidade 7
Roteiro pacto unidade 7Shirley Lauria
 
Can ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐT
Can ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐTCan ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐT
Can ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐTRosta Tu
 

Destaque (17)

2
22
2
 
17th april,2015 daily global rice e newsletter by riceplus magazine
17th april,2015 daily global rice e newsletter by riceplus magazine17th april,2015 daily global rice e newsletter by riceplus magazine
17th april,2015 daily global rice e newsletter by riceplus magazine
 
Presentation 3
Presentation 3Presentation 3
Presentation 3
 
Training ABAP Online SAP Course
Training ABAP Online SAP CourseTraining ABAP Online SAP Course
Training ABAP Online SAP Course
 
100 photos de femmes parfaites
100 photos de femmes parfaites100 photos de femmes parfaites
100 photos de femmes parfaites
 
alkenes last
alkenes lastalkenes last
alkenes last
 
պանթեոն
պանթեոնպանթեոն
պանթեոն
 
My Professional Persona Project
My Professional Persona Project My Professional Persona Project
My Professional Persona Project
 
Muawiyah bin abu sufyan so called katib e wahi
Muawiyah bin abu sufyan so called katib e wahiMuawiyah bin abu sufyan so called katib e wahi
Muawiyah bin abu sufyan so called katib e wahi
 
Ccr
CcrCcr
Ccr
 
34º cristo rei tob 2015 bene pagola
34º cristo rei  tob  2015  bene pagola34º cristo rei  tob  2015  bene pagola
34º cristo rei tob 2015 bene pagola
 
Top 10 cars that i think define cool
Top 10 cars that i think define coolTop 10 cars that i think define cool
Top 10 cars that i think define cool
 
Tigin K.Y
Tigin K.YTigin K.Y
Tigin K.Y
 
Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015
Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015
Problemas frecuentes-del-desarollo-apego-y-ansiedad-ute-2015
 
Roteiro pacto unidade 7
Roteiro pacto   unidade 7Roteiro pacto   unidade 7
Roteiro pacto unidade 7
 
Can ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐT
Can ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐTCan ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐT
Can ho Lexington Residence q2 gia tot nhat, MT Mai Chi Tho, 0909 009 304 CĐT
 
бизнес
бизнесбизнес
бизнес
 

Semelhante a .Net framework (20)

Net framework
 Net framework Net framework
Net framework
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - English
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To Dotnet
 
dot NET Framework
dot NET Frameworkdot NET Framework
dot NET Framework
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.Net
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
 
Net framework
Net frameworkNet framework
Net framework
 
Net framework
Net frameworkNet framework
Net framework
 
Net framework
Net frameworkNet framework
Net framework
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Intro.net
Intro.netIntro.net
Intro.net
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
 
SynapseIndia dotnet development platform overview
SynapseIndia  dotnet development platform overviewSynapseIndia  dotnet development platform overview
SynapseIndia dotnet development platform overview
 
jkljklj
jkljkljjkljklj
jkljklj
 
Silverlight 2
Silverlight 2Silverlight 2
Silverlight 2
 
Dot net Introduction and their usabilities
Dot net Introduction and  their usabilitiesDot net Introduction and  their usabilities
Dot net Introduction and their usabilities
 
Node.js Workshop - Sela SDP 2015
Node.js Workshop  - Sela SDP 2015Node.js Workshop  - Sela SDP 2015
Node.js Workshop - Sela SDP 2015
 
.Net framework
.Net framework.Net framework
.Net framework
 

Mais de teach4uin

Master pages
Master pagesMaster pages
Master pagesteach4uin
 
Scripting languages
Scripting languagesScripting languages
Scripting languagesteach4uin
 
State management
State managementState management
State managementteach4uin
 
security configuration
security configurationsecurity configuration
security configurationteach4uin
 
static dynamic html tags
 static dynamic html tags static dynamic html tags
static dynamic html tagsteach4uin
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tagsteach4uin
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentationteach4uin
 
.Net overview
.Net overview.Net overview
.Net overviewteach4uin
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lessonteach4uin
 
storage clas
storage classtorage clas
storage clasteach4uin
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrolsteach4uin
 

Mais de teach4uin (20)

Controls
ControlsControls
Controls
 
validation
validationvalidation
validation
 
validation
validationvalidation
validation
 
Master pages
Master pagesMaster pages
Master pages
 
Scripting languages
Scripting languagesScripting languages
Scripting languages
 
Css1
Css1Css1
Css1
 
Code model
Code modelCode model
Code model
 
Asp db
Asp dbAsp db
Asp db
 
State management
State managementState management
State management
 
security configuration
security configurationsecurity configuration
security configuration
 
static dynamic html tags
 static dynamic html tags static dynamic html tags
static dynamic html tags
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tags
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
 
.Net overview
.Net overview.Net overview
.Net overview
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lesson
 
enums
enumsenums
enums
 
memory
memorymemory
memory
 
array
arrayarray
array
 
storage clas
storage classtorage clas
storage clas
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrols
 

Último

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Último (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

.Net framework

  • 2. The .NET Framework  What is Microsoft .NET?  A programming model: CLR + Classes  XML Web services  Server and Client software and tools
  • 3. Common Language Runtime (CLR)  It’s a VM (Java-like) on which any (supported) language can run.  Why a VM?  Memory Protection  Cross-language  Support for strong-typing across languages (the data are typed)  Thread support  JIT compilation in the VM
  • 4. Languages in CLR  Language of choice is C# (“C-sharp”) a Java-like language  No inner classes  Better type checking  Other languages will run on CLR, but only within the CLR constraints  Visual Basic, JScript are full fledged CLR languages  For example, only C++ that is VM-safe will run  That subset looks much like C#  Under CLR, all languages get object features  Inheritance used extensively  Every language gets constructors
  • 5. Languages compile to MSIL  Languages compile to MSIL (Microsoft Intermediate Language)  Can you say “bytecodes”?  MSIL is shipped in portable executable (PE) units  Can you say .class files or applets?  An application is made up of assemblies
  • 6. Assemblies  In general, a static assembly can consist of four elements:  The assembly manifest, which contains assembly metadata.  Type metadata.  Microsoft intermediate language (MSIL) code that implements the types.  A set of resources.
  • 7. Assemblies can be spread across .NET
  • 8. Assemblies are the security unit  Each assembly has a set of corresponding grants  Each grant allows certain permissions  DnsPermission, Environment, FileDialog, FileIO, IsolatedStorage, Reflection, Registry, Security, UI, WebPermission, SocketPermission  The set of grants establishes a security policy
  • 9. Class Library  Data classes support persistent data management and include SQL classes.  XML classes enable XML data manipulation and XML searching and translations.  Windows Forms support development of Windows GUI applications across CLR  Web Forms include classes that enable you to rapidly develop web GUI applications.
  • 10. System.Object  Public methods:  Equals  GetHashCode  GetType  ToString  Overriding inherited behaviors is common
  • 11. Web, Windows, Whatever  Part of the idea is to smooth transitions between Windows and Web  Web interfaces become easier for Windows developers  Windows apps become .NET Web-based apps
  • 12. Data <-> XML, Everywhere  All CLR data can be serialized to XML  All XML can be expanded into CLR data  Thus, anything can be shipped around on the Web  Typing through XML Schema
  • 13. XML Schema <xsd:complexType name="Person"> <xsd:sequence> <xsd:choice> <xsd:element name="name" type="xsd:string" xsi:nillable="true" /> <xsd:element name="id" type="xsd:string" /> </xsd:choice> <xsd:any processContents="lax"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="AgedPerson"> <xsd:complexContent mixed="false"> <xsd:extension base="target:Person"> <xsd:choice> <xsd:element name="age" type="xsd:double" /> <xsd:element name="timeOnEarth" type="xsd:double" /> </xsd:choice> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="don" type="target:Person" />
  • 16. A Simpler Schema <element name="Book"> <complexType> <element name="author" type="xsd:string"/> <element name="preface" type="xsd:string"/> <element name="intro" type="xsd:string"/> </complexType> </e:Book>
  • 17. Another Example Instance <e:Book> <author>Henry Ford</author> <preface>Prefatory text</preface> <intro>This is a book.</intro> </e:Book>
  • 19. Class Library Data Hierarchy
  • 20. Reading in XML Data XmlReader reader = new XmlTextReader("http://foo.com/don.xsd"); XmlSchema schema = XmlSchema.Load(reader, null); schema.Compile(null); // turn xml into objects reader.Close();
  • 21. ALL Interprocess Communication via SOAP  ALL Interprocess communication (across network or on same machine) is through SOAP  Simple Object Access Protocol  It’s a way of exchanging data and even calling other methods/threads, all via XML and plain old HTTP requests
  • 22. Example SOAP Request POST /StockQuote HTTP/1.1 Host: www.stockquoteserver.com Content-Type: text/xml; charset="utf-8" Content-Length: nnnn SOAPAction: "Some-URI" <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <m:GetLastTradePrice xmlns:m="Some-URI"> <symbol>DIS</symbol> </m:GetLastTradePrice> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
  • 23. Example SOAP Response HTTP/1.1 200 OK Content-Type: text/xml; charset="utf-8" Content-Length: nnnn <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <SOAP-ENV:Body> <m:GetLastTradePriceResponse xmlns:m="Some-URI"> <Price>34.5</Price> </m:GetLastTradePriceResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
  • 24. ASP.NET  ASP => Active Server Pages  Put most of the computation in the server  Very simple model to use  ADO.NET is the database connection part
  • 25. Calling Web Services  Any class can be converted into an XML Web Service with just a few lines of code, and can be called by any SOAP client.
  • 26. Take-away lessons  VM’s are important  Even Microsoft thinks so  Distributed apps are important, but to do so requires standard protocols  Ways of serializing data  Ways of doing RPC
  • 27. Limitations of the .NET Framework  What if you’re not on the network?  Maybe that’s not an issue?  Mapping between XML and any object is hard  Any object is controlled by compiler. XML can be written by anybody with a text editor.  There’s a whole bunch of class support for modified serializers and compilers