NET Framework Overview
Download
Report
Transcript NET Framework Overview
.Net Framework and C# Programming
Course Introduction
祝伟华
QQ:
190279325 / 13594050521
Email:
[email protected]
主教学楼:
傅鹂
1009 网络新型服务技术中心
/ 祝伟华
傅鹂负责C#相关的高级编程
祝伟华负责.NET框架的编程
.Net Framework and C# Programming
Course Introduction
You
are not learning another language here
You
must do a lot of reading, self-study, and practice
This
course has great value and very important
You
must have these knowledge to begin
One Object Oriented Programming Language
TCP/IP Protocol
Database
Basic Web Development Experience
HTML, JavaScript etc
Books Recommended
C# Advanced
Programming
ADO.NET Advanced
Programming
ASP.NET
For Beginner
ASP.NET
Case Study
Web
Service Programming
XHTML,
C#
CSS, AJAX
Design Pattern
.NET Framework Overview
.NET and the .NET Framework
Objectives
Learn
basic principles and concepts of.NET and the
.NET framework
Contents
Basic
Knowledge
Looking
.NET
Back
and .NET Framework Overview
Summary
Basic Knowledge
What’s
going on in software industry?
What’s
going on in China?
How
to succeed in this industry?
Why
get your degree here?
What
knowledge you must learn to survive in the
future?
What
you must learn in this course?
Basic Knowledge
Divide
and Conquer/Tree
Reuse/Module/Class/Function
Interface/Cohesion
Layer/N
Tier
Protocol/HTTP/XML/SOAP
Standard
Distributed
Computing
RPC
COM/DCOM
CORBA
RMI
WEB SERVICE
10 Requirements for Enterprise Applications
Why was .NET created?
Internet, .COM, .NET, Web 2.0, Web 3.0, Semantic Web
Computing resources
Powerful desktops
Remote servers.
The hugeness of the Internet.
Low cost of the Internet.
Wireless capabilities.
Multitude of connectable devices.
PDAs
Cell phones
Internet standards
XML – eXtensible Markup Language
SOAP – Simple Object Access Protocol
UDDI – Universal Description, Discovery, and Integration
Section 1: Looking Back
Challenges
for the development organization
Challenges
for the corporate customer
Applications
and services
Challenges for Development Organization
Development
Language and operating system choices
Delivery
CD-ROM: production, packaging, transport
Electronic delivery requires human involvement
Stability
DLL compatibility issues
Operating system—pollution leads to instability
Compatibility tests with “popular” solutions
Maintenance
Customer involvement, even for critical updates
Packaging, production, and delivery of medium
Challenges for the Corporate Customer
Deployment
Installation often requires time and personnel
Testing for compatibility with existing applications and OS
License management
Stability
and security
Requires (even more!) testing
Can lead to inadvertent breaches of security
Can destabilize the system or other solutions
Maintenance
All the problems of deployment and security revisited!
Applications and Services
Applications
Today’s solutions are services as applications
The future is not applications but services
Desktop Services: Today’s application + optional Web Services
Web Services: The application delivered to any device
Today’s
Internet “services”
Delivered via Internet via a portal
www.hotmail.com
www.lycos.com
Not “portable”: Can’t take it with you as you browse
Some “intermediary” solutions exist:
as the service solution
www.passport.com
Browser, vendor, and device dependent
Requires interactive access
Section 2: .NET Framework Overview
What
Is .NET?
Migration
Key
Paths—from Anywhere to .NET
Benefits of .NET
What Is . NET?
The
combination of:
Framework
Common language runtime
Class libraries
ASP.NET
Web Services
.NET Enterprise Servers
The
means to build the Web the way you want it!
.NET and the .NET Framework
Web Services
Office.Net
...
...
Building Blocks (e.g. for Services)
.NET Applications
Enterprise Servers
Languages:
SQL Server
C#, Visual Basic, etc
BizTalk
...
Runtime
Common
Type
System
Common
Language
Runtime
Services:
.NET Framework
Operating System
.NET and COM+
Framework, Languages, And Tools
VB
C++
C#
JScript
J#
Common Language Specification
Windows
Forms
ADO.NET and XML
Base Class Library
Common Language Runtime
Operating System
Visual Studio.NET
ASP.NET
Web Forms Web Services
Mobile Internet Toolkit
.NET Framework Diagram
Web
Services
User
Interface
Base Classes
Common Language Runtime
Base Frame
Data & XML
Common Language Runtime
Highlights
Common type system
Mapping of data types. Programming language Framework
Just-in-time (JIT) compilers
JIT compiles intermediary language (MSIL) into native code
Highly optimized for platform or device
Garbage collector
Permission and policy-based security
Exceptions
Threading
Diagnostics and profiling
Common Language Runtime Diagram
Base Class Library Support
Thread Support
COM Marshaler
Type Checker
Exception Manager
Security Engine
Debug Engine
MSIL to Native
Compilers (JIT)
Code
Manager
Class Loader
Garbage
Collector (GC)
More .NET Framework
Namespaces
and Classes
Hierarchical, unified class libraries
Unified and extensible provide “system” and base
functionality and services
Object-oriented: everything is an object!
The systems uses the same classes offered to you
Interfaces
The .NET (Service) contracts
Types
Byte, Sbyte, Single, Double, String, Int16, etc.
These all map to the common type system
Unifies Different Programming Models
Consistent API availability regardless of
language and programming model
.NET Framework
RAD,
Composition,
Delegation
Visual Basic®
Forms
Subclassing, Power,
Expressiveness
MFC/ATL
Windows API
Stateless,
Code embedded
in HTML pages
ASP
Services
.NET
and COM+ Services
Expose COM/COM+ functionality
Expose additional services needed to build solutions
ASP.NET session/state management
ASP.NET user management
Building
Block Services
Basic services used to build applications and Web Service
Passport.NET
Calendar
Enterprise
Servers
Web Services
What
does “service” mean to you?
Think: service industry
What
are Web services?
What
is the business case?
How
does .NET make them possible?
What Are Web Services?
Any
service you can think of
Some
potential or planned Web Services
Passport.NET
“Yellow Pages”
Dictionary/thesaurus (e.g., www.dictionary.com)
Small business services (e.g., www.FreeWorks.com)
Personal information management services
Think:
“Access Anywhere”
How .NET Makes Web Services Possible
.NET
It
It
is built on the idea of Web Services
uses Framework classes, such as
System.Web.Services
System.Web.Services.Description
System.Web.Services.Discovery
enables communication through open standards
XML
Service description expressed with WSDL
SOAP
Basic wire format
Universal Description Discovery Integration (UDDI)
HTTP
What Is the Business Case?
Charge
Offer
for currently “free” features and functionalities
different pricing models:
Pay-per-view (or use)
Multiple subscription models
Rental or leasing of your solution
Create
an opportunity from “untapped” functionality
Publish your custom COM component as a pay service!
Think:
“Access Anywhere = Opportunity Everywhere”
Orchestration 1/2
What
is “orchestration”?
Creating a solution through integration of:
Disparate services and applications
Multiple data streams
Servers
Think: Unifying data and messages from everywhere
What
are its benefits?
Save time by using existing infrastructure and solutions
Integrate legacy solutions with .NET solutions
Orchestration 2/2
Internet
.NET
Applications
ERP
Application
Mainframe/
Host
System
Internet and
Acceleration
Server 2000
Host
Integration
Server 2000
Exchange
2000 Server
SQL Server
2000
.NET Enterprise Servers
BizTalk®
Server 2000
Exchange
SQL
2000 Server
Server™ 2000
Integration,
Security and Acceleration Servers
Host Integration Server 2000
Internet Security and Acceleration Server 2000
Application,
Services and Commerce Servers
Application Center 2000
Commerce Server 2000
Mobile Information Server 2001
SharePoint™ Portal Server 2001
BizTalk Server 2000
Orchestration
Link different platforms, applications, and services
Enterprise Application Integration (EAI)
Messaging—Use
of Open Standards
XML
Electronic Data Interchange (X12, UN/EDIFACT)
Hypertext Transfer Protocol (HTTP)
Simple Mail Transfer Protocol (SMTP)
Public key encryption
Digital signatures
SQL Server 2000
Reliability
Data
and scalability
warehousing
Analysis services
Natural language query (English query)
Data transformation services
E-commerce
Web enabled
XML support
Built-in security
Exchange 2000 Server
Messaging
and collaboration platform
Active Directory™ integration
Optimized for Microsoft Windows® 2000
Tight integration with Internet Information Services (IIS)
Single-seat administration
Web
Storage System and native XML support
Open standards based (WebDAV, HTTP)
Powerful indexing and search
Easy application integration using ADO and OLE DB
Integration, Security, and Acceleration
Host
Integration Server 2000
Integrate Internet, intranet, client/server, and host systems
Manage host access
Enable application integration
Internet
Security and Acceleration Server 2000
Secure Web sites
Multilayer firewall
Intrusion detection
Accelerate Web sites
High performance advanced caching mechanisms
Scalability
Applications, Services, and Commerce
Application
Deploy and manage high availability Web applications
Commerce
Server 2000
Build tailored, effective e-commerce solutions
Mobile
Center 2000
Information 2001 Server
Bring the NET to mobile devices
SharePoint™
Portal Server 2001
Intranet portal and search
Document management
Collaborative applications
Web storage
.NET and the .NET Enterprise Servers
Internet
BizTalk
Server
2000
Mainframe/
Host
System
Internet and
Acceleration
Server 2000
Exchange
2000 Server
.NET Solutions
Host
Integration
Server
2000
SQL Server
2000
Migration Paths—From Anywhere to .NET
What
isn’t migration?
Porting an existing solution to a new platform
What
is migration?
Creating a bridge to current or future technology
Integrating legacy solutions into new solutions
.NET
facilitates migration
eXtensible Markup Language (XML)
Simple Object Access Protocol (SOAP)
Hypertext Transfer Protocol (HTTP)
ASP.NET
Why use the .NET Framework?
C#
Just-In-Time
compiler
C# compiler
C++ compiler
C++
C
Scheme
Prolog
X
languages
C compiler
IL
Scheme compiler
JIT
AND
CLR
Prolog compiler
X compiler
compilers
Intermediate
Language
Common
Language
Runtime
Simulator
or
Hardware
Why use the .NET Framework?
Multi-language
development
C#, C/C++, VB.NET, Eiffel, Fortran, Java, Pascal, Perl,
Python, Scheme, SmallTalk, and many more.
Allows you to use whatever language fits your
wants/needs
Harness
the power of Visual Studio
Highly productive environment
MSDN
Key Benefits of .NET 1/3
Ease
Object-oriented model
of Use
Everything is an object
Namespace and Framework structure
Easier to comprehend and use
Naming scheme of namespaces reflects the underlying functionality
Freedom
to Choose:
The language that meets your needs
The development tool that is best for you
The “features and functionality” to “plug in to”
Key Benefits of .NET 2/3
Stability
Say “goodbye” to memory leaks
Garbage collection manages memory
Assembly eliminates DLL compatibility issues
Deliverables are restricted to an assembly
Security
Restricting or containing the illegal memory reference
Comprehensive security model
Assembly specific
System wide
Code inspection through MSIL
Key Benefits of .NET 3/3
Deployment
and Management
Deployment: Code is “Assembled” and Run “Securely”
Maintenance: Version Maintenance Simplified
Unified
Experience
Integrate disparate services into a new, unified solution
Web
The
Services
Web the Way You Want It
Anywhere
Anytime
On any device
Summary
The
.NET Framework provides the means to:
Deliver solutions anywhere, anytime, and on any device
Orchestrate existing distinct solutions into new ones
Migrate legacy solutions
Develop using the tools and languages of choice
Utilize existing and planned .NET Enterprise Servers
Create open solutions on open standards
Better develop, deliver, and maintain solutions
Produce secure, stable, and manageable solutions
Create and use Web Services
Produce extensible solutions