Вы находитесь на странице: 1из 28

Session 1

Introduction to
.NET
Objectives
 Discuss the transformation in computing, the Internet, and
application development

 Identify the need for .NET


 Explain the role of the CLR and IL


 Describe the core components of Microsoft. NET


 Discuss the .NET Framework and list the components in it



Tra n sfo rm a tio n in
C o m p u tin g
Centralized Computing

Mainframe

Dumb terminals
Tra n sfo rm a tio n in
C o m p u tin g
Centralized Client-Server Computing
Computing

Server
PC

Clients: Smart terminals


Transformation in
Computing
Centralized
Computing
Client-Server
Computing
Distributed Computing

Network

Smart terminals
In local distributed computing, computers are present generally
Distributed Computing

Internet
Transformation in
Computing
Centralized
Computing

Client-Server
Computing

Distributed Computing

Internet
Internet
The Internet
Web Server

Web Server

•Websites are isolated islands


•Web serves HTML ‘pictures of data’-not
actual data
•Browser: glorified read-only dumb terminal
Web Server •Architecture mirrors old time-sharing model
•Personalization involves entering same
personal info at every site!
Before .Net DEVELOPER
USER
•Inadequate tools for building,
Othe r testing and deploying sites
Inf o •Sites-generally attractive, not
Offline useful!
Online Info
Info
Ema I need a system that
ils allows me to write code
for a PC, & deploy it
to a variety of devices

OFFICE
I need a personal Information Space
HOME
Transformation in the
Internet
Web Server Constellation
Web Server

Web Server
Web Server

Web Server

Web sites as islands


Web Server

Sites, services, and devices-


collaborate and provide rich user
experience
Evolution of App
Development
vice
rket ser
t o ma
v ity a s a w h ere
tim
e
duc
ti
wIntern
are e , Any
Les
s
l o pe r p
r o
t war
e Sof
t
by
Aet
nyo
n
e f d
r dev ty so
e u
s e
he ual
i b
Hig q can
ig her App
s
H

•Apps integrate •Apps (Web Services) expose


& features programmatically
u r ces entire
over
r eso ver applications from
inter/intranet
h o all over network+add
Ric trol ions •developers integrate web
con licat unique value
services into their apps by
app •Focus-therefore on
calling web APIs
unique business
•Apps integrate local value, •COMPONENT PROGRAMMING
system services not on building over the web!
infrastructure
.NET-a result of evolution
Melding
Computing
&
Communications
Building
Constellations
-not islands!
Distributed
Computing
-here to stay!
Software as
a service
Applications
used
by
anyone/anywhere
.NET-a result of evolution
Melding
Computing
&
Communicati
ons
Building
.NET Constellatio
ns
-not islands!
Distribute
d
Computing
-here to
stay!
Software
as
a service
Applicatio
ns used
by
anyone/any
where
.Net – taking DC one step
further
.NET-taking DC one step further!
§User Data lives on the NET—can be accessed from anywhere, any time
§
§.NET—a whole new platform centered around the Internet

§Create applications that can be accessed via any browser, any device

§.NET applications harness the power of the Internet

§Data can be accessed from any .NET device


Program Execution
Program Execution
 Earlier languages had their own compilers and their own
runtime environments.

 In .Net the compiler of the respective language compiles the


source code into an ‘Intermediate Language’.

 In .Net language specific runtime has been replaced by CLR.




E xe cu tin g . N E T p ro g ra m s
.NET MSIL
source + Machine Code
code Metadata code executed

RLC
egaugnaL
relipmoC

2nd Compilation

1st Compilation

.NET programs are compiled twice—the first compilation is slow, while the
second one is relatively faster!
M icro so ft In te rm e d ia te
La n g u a g e

MSIL
.NET MSIL
source + Machine Code
code Metadata code executed

RLC
egaugnaL
relipmoC

Helps Language
interoperability
MSIL converted to CPU-
specific code by CLR
IL is not bytecode, but
is very close to it.
Therefore, when the
application is executed,
the IL to machine code
conversion is quick! CPU-independent set of
instructions
The Common Language Runtime

CLR
.NET MSIL
source + Machine Code
code Metadata code executed

RLC
egaugnaL
relipmoC

Manages memory

Cross-language
integration
Makes it easy to design (especially cross-
components & language inheritance)
applications whose
objects interact across
languages
Compile once, and run on any
CPU & OS that supports the
runtime!
Features of Microsoft.NET Platform

Built on XML and internet protocols

Set of tools and services for developing new


generation of software

Designed to allow integration/orchestration of


Microsoft.NET any group of resources on the Internet

Makes it quick and easy to design, implement,


X and deploy collaborative web solutions
M Internet
L Protocols
XML - one of the core components of
Microsoft.NET

Separates actual data from presentation.

Key to next generation internet; unlocks info that can


be organized, programmed, and edited.

Provides way to distribute data to variety of


Microsoft.NET devices.

Allows websites to collaborate and provide


X constellation of web services that will be
M Internet
L Protocols able to interact with each other.
Internet Protocols in .NET
Microsoft.NET is built on existing protocols such as
HTTP & SOAP(Simple Object Access Protocol)

SOAP is an XML/HTTP-based protocol

SOAP allows access to services, objects, and


servers in a platform-independent manner
Microsoft.NET

SOAP used for exchange of information in a


X decentralized, distributed environment
M Internet
L Protocols
The Microsoft.NET
platform

Orchestration
.NET .NET Building
Framework Enterprise Block
Servers Services

Windows (CE, ME, 2000, and .NET)


Windows 2000 Family- the Chosen One

The .NET platform is built


on
Scalability,
Reliability,
Security,
and
Manageability
of Windows 2000 Server
family

Orchestration

.NET .NET Building


Framework Enterprise Block
Servers Services

Windows (CE, 2000, vista and


Windows7)
Components of Web
Services
Web UI

.Net framework Data and XML

Base classes

Common Language Runtime

Orchestration

.NET .NET Building


Framework Enterprise Block
Servers Services

Windows (CE, ME, 2000 and .Net)


.Net Enterprise Servers
•SQL Server
•Internet Security &
Acceleration Server
•Host Integration Server
•Exchange Server &
Exchange Conferencing
Server

Orchestration •Commerce Server


•Biztalk Server
.NET .NET Building
Framework Enterprise Block •Application Server
Servers Services

Windows (CE, ME, 2000 and .Net)


Orchestration

Вам также может понравиться