Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Dot Net Training Dot Net35

Wird geladen in …3

Hier ansehen

1 von 37 Anzeige

Weitere Verwandte Inhalte

Diashows für Sie (19)

Ähnlich wie Dot Net Training Dot Net35 (20)


Weitere von Subodh Pushpak (19)

Aktuellste (20)


Dot Net Training Dot Net35

  1. 1. Microsoft .Net Framework 3.x
  2. 2. Agenda <ul><li>Introduction to .Net 3.0 (along with 3.5) </li></ul><ul><li>What's new in .Net 3.0 – A developer perspective </li></ul><ul><ul><li>Introduction to XAML </li></ul></ul><ul><li>The WPF, WCF, WF and Cardspace </li></ul><ul><li>Silverlight </li></ul><ul><li>Demos / Hands on </li></ul><ul><li>Questions and Answers </li></ul>
  3. 3. <ul><li>.Net 3.0: </li></ul><ul><ul><li>Net combines the power of the .NET Framework 2.0 with new technologies for building applications that have visually compelling user experiences, seamless communication across technology boundaries, and the ability to support a wide range of business processes. </li></ul></ul><ul><ul><li>NET Framework 3.0 is a superset of the .NET Framework, designed to expose the new functionality in Windows Vista® to the developer through managed classes. </li></ul></ul>Overview to .Net 3.0 Windows Vista (Longhorn) is tightly integrated with .net 3.0 framework. The Look and feel of Vista is enhanced using the WPF.
  4. 4. What's new in .Net 3.0 – A developer perspective <ul><li>Programming model for Windows </li></ul><ul><li>.NET Framework 3.0 consists of these basic components: </li></ul><ul><ul><li>.NET Framework 2.0 </li></ul></ul><ul><ul><li>Microsoft® Windows® Presentation Foundation (formerly Avalon) </li></ul></ul><ul><ul><li>Microsoft® Windows® Communication Foundation (formerly Indigo) </li></ul></ul><ul><ul><li>Microsoft® Windows® Workflow Foundation </li></ul></ul><ul><ul><li>Windows CardSpace® (formerly code named &quot;Infocard&quot;) </li></ul></ul>
  5. 5. What's new in .Net 3.0 – A developer perspective. Contd.
  6. 6. XAML <ul><li>One great benefit of XAML is that it helps to separate design and development, which actually helps to improve collaboration and efficiency between designers and software developers. As the XAML markup for an application's UI remains separate from the remainder of application logic, a designer's exact layout can be saved in XAML and combined with the application without affecting the development process. </li></ul><ul><li>Easily toolable, declarative markup </li></ul><ul><li>Code and content are separate </li></ul><ul><li>Can be rendered in the browser / standalone application </li></ul><ul><li>XPS – XML Paper Specification. Microsoft has integrated XPS-based technologies into the 2007 Microsoft Office system and the Microsoft Windows Vista operating system, but XPS itself is platform independent, openly published, and available royalty-free. </li></ul>
  7. 7. XAML <Button Width=&quot;100&quot;> OK <Button.Background> LightBlue </Button.Background> </Button> XAML Button b1 = new Button(); b1.Content = &quot;OK&quot;; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; C# Dim b1 As New Button b1.Content = &quot;OK&quot; b1.Background = New _ SolidColorBrush(Colors.LightBlue) b1.Width = 100 VB.NET
  8. 8. Extensible Application Markup Language Introduction to XAML <ul><li>Microsoft Tools for Designers & Developers </li></ul><ul><li>Declarative Programming through XAML </li></ul><ul><li>Third Party Tools (e.g. Aurora by Mobiform, ZAM 3D by Electric Rain) </li></ul>Designers design <ul><ul><li>With XAML designers & developers can streamline their collaboration </li></ul></ul>Developers add business logic
  9. 9. Windows Presentation Foundation <ul><li>WPF is the new presentation API (Application Programming Interface) in .NET Framework 3.0 </li></ul><ul><li>The Windows Presentation Foundation is the unified presentation subsystem for Windows. It consists of a display engine and a managed-code framework. The Windows Presentation Foundation unifies how Windows creates, displays, and manipulates documents, media, and user interface, which enables developers and designers to create visually-stunning, differentiated user experiences that improve customer connection. </li></ul><ul><li>Developers can program directly against the API with .NET, instantiate (render) WPF objects by expressing them in XAML, or employ a mixture of XAML with .NET code behind. </li></ul>
  10. 10. WPF Architecture Application Services Deployment Services Databinding USER INTERFACE SERVICES XAML Accessibility Property System Input & Eventing BASE SERVICES DOCUMENT SERVICES Packaging Services XPS Documents Animation 2D 3D Audio Imaging Text Video Effects Composition Engine MEDIA INTEGRATION LAYER Controls Layout Windows Presentation Foundation XPS Viewer Property Engine Input / Eventing System .NET Framework 2.0 Desktop Windows Manager Media Integration Layer DirectX Windows Vista Display Driver (LDDM) Windows Media Foundation Composition Engine Print Spooler Managed Unmanaged
  11. 11. WPF <ul><li>WPF fundamentally is designed to create dynamic, data driven presentation systems. Every part of the system is designed to create objects through property sets that drive behavior. Data binding is a fundamental part of the system, and is integrated at every layer. </li></ul>
  12. 12. Demo <ul><li>“ Hello World” Application:- Starting with pure XAML (Declarative programming model). </li></ul><ul><li>Attaching events. Understanding the new event model of .Net 3.0. </li></ul><ul><li>Bit of Animation . </li></ul><ul><li>XPS capabilities </li></ul>
  13. 13. Silverlight <ul><li>Silverlight is a new cross-browser, cross-platform implementation of the .NET Framework for building and delivering the next generation of media experiences and rich interactive applications (RIA) for the Web. Silverlight unifies the capabilities of the server, the Web, and the desktop, of managed code and dynamic languages, of declarative and traditional programming, and the power of Windows Presentation Foundation (WPF). </li></ul><ul><li>Silverlight enables following features: </li></ul><ul><li>It is a cross-browser, cross-platform technology. It runs in all popular Web browsers, including Microsoft Internet Explorer, Flock, Mozilla Firefox, Apple Safari, and Opera, and on Microsoft Windows and Apple Mac OS X. </li></ul><ul><li>It provides a consistent experience no matter where it runs. </li></ul><ul><li>It is supported by a very small download that installs in seconds. </li></ul><ul><li>It streams video and audio. It scales video quality to everything from mobile devices to desktop browser s . </li></ul><ul><li>It includes compelling graphics that users can manipulate—drag, turn, zoom—directly in the browser. </li></ul><ul><li>It reads data and updates the display, but it doesn't interrupt the user by refreshing the whole page. </li></ul>
  14. 14. Silverlight <ul><li>How Silverlight offers features: </li></ul><ul><li>WPF and XAML . Silverlight includes Windows Presentation Foundation (WPF) technology, which greatly extends the elements in the browser for creating UI. WPF lets you create graphics, animation, media, and other rich client features, extending browser-based UI beyond what is available with HTML alone. Extensible Application Markup Language (XAML) provides a declarative m arkup syntax for creating WPF elements. </li></ul><ul><li>Extensions to JavaScript . Silverlight provides extensions to the universal browser scripting language that provide powerful control over the browser UI, including the ability to work with WPF elements. </li></ul><ul><li>Cross-browser, cross-platform support . Silverlight runs the same on all popular browsers (on any platform). You can design and develop your application without having to worry about which browser or platform your users have. </li></ul><ul><li>Integration with existing applications . Silverlight integrates seamlessly with existing JavaScript and ASP.NET AJAX code to complement functionality already created. </li></ul><ul><li>Access to the .NET Framework programming model and to associated tools . Silverlight-based applications may be created using dynamic languages such as Managed JScript and IronPython as well as languages such as C# and Visual Basic. D evelopment tools such as Visual Studio can be leveraged to create Silverlight-based applications. </li></ul>
  15. 15. Silverlight <ul><li>LINQ . Silverlight includes language-integrated query (LINQ), which enables data access using intuitive native syntax and strongly typed objects in .NET Framework languages. </li></ul><ul><li>S erver-based resources in ASP.NET can be created to use the AJAX capabilities of ASP.NET to interact with server-based resources without interrupting the user. </li></ul>
  16. 16. Silverlight
  17. 17. Silverlight
  18. 18. Silverlight <ul><li>Silverlight RIA – Light up my web </li></ul><ul><li>Silverlight and ASP .NET , AJAX </li></ul>
  19. 19. Windows Communication Foundation <ul><li>The WCF is an incremental, yet evolutionary technology that brings all the formerly distinct and separate Microsoft connectivity technologies together under a single umbrella within the System.ServiceModel namespace. Included in WCF are Web services (ASMX), the Web service Extensions (WS*), Microsoft Message Queuing (MSMQ), Enterprise Services, COM+, and .NET Remoting using Windows Communication Foundation's System.ServiceModel namespace </li></ul><ul><li>Having a single namespace that subsumes all of these into a coherent package is enormously useful, and makes designing, developing, and deploying applications that require connectivity far simpler. </li></ul><ul><li>Whether the application connects via loosely coupled Web services, or tightly coupled Enterprise Services, the coding model will be consistent and the transition between different communication types will be smoother </li></ul>
  20. 20. The ABC of WCF <ul><li>ABC means that writing (and configuring) a WCF service is always a three-step process </li></ul><ul><li>Define a contract and implement it on a service </li></ul><ul><li>Choose or define a service binding that selects a transport along with quality of service, security and other options </li></ul><ul><li>Deploy an endpoint for the contract by binding it (using the binding definition, hence the name) to a network address. </li></ul><ul><li>&quot;A&quot; stands for Address—as expressed in the wsdl:service section and links wsdl:binding to a concrete service endpoint address. </li></ul><ul><li>&quot;B&quot; stands for Binding—as expressed in the wsdl:binding section and binds a wsdl:portType contract description to a concrete transport, an envelope format and associated policies. </li></ul><ul><li>&quot;C&quot; stands for Contract—as expressed in the wsdl:portType, wsdl:message and wsdl:type sections and describes types, messages, message exchange patterns and operations. </li></ul>
  21. 21. WCF <ul><li>Endpoints - All communications with the WCF service will happen via the endpoints. The endpoint is composed of 3 parts (collectively called as ABC's of endpoint) as defines below: </li></ul><ul><li>Address: The endpoints specify a Address that defines where the endpoint is hosted. </li></ul><ul><li>Contract: The endpoints specify a Contract that defines which methods of the Service class will be accessible via the endpoint; each endpoint may expose a different set of methods. </li></ul><ul><li>Binding: The endpoints also define a binding that specifies how a client will communicate with the service and the address where the endpoint is hosted.Various components of the WCF are depicted in the figure below. </li></ul>
  22. 22. WCF
  23. 23. WCF <ul><li>Contracts and Descriptions </li></ul><ul><li>Contracts define various aspects of the message system. The data contract describes every parameter that makes up every message that a service can create or consume. The message parameters are defined by XML Schema definition language (XSD) documents, enabling any system that understands XML to process the documents. </li></ul><ul><li>Service Contracts - Describes the operations a service can perform. Maps CLR types to WSDL. </li></ul><ul><li>Data Contracts - Describes a data structure. Maps CLR types to XSD. </li></ul><ul><li>Message Contracts - Defines the structure of the message on the wire. Maps CLR types to SOAP messages. </li></ul><ul><li>Bindings can be defined in config file as well as programmatically. </li></ul>
  24. 24. WCF <ul><li>Service Runtime </li></ul><ul><li>The service runtime layer contains the behaviors that occur only during the actual operation of the service, that is, the runtime behaviors of the service. </li></ul><ul><li>Throttling controls how many messages are processed, which can be varied if the demand for the service grows to a preset limit. </li></ul><ul><li>An error behavior specifies what occurs when an internal error occurs on the service, for example, by controlling what information is communicated to the client. </li></ul><ul><li>Metadata behavior governs how and whether metadata is made available to the outside world. </li></ul><ul><li>Instance behavior specifies how many instances of the service can be run (for example, a singleton specifies only one instance to process all messages). </li></ul><ul><li>Transaction behavior enables the rollback of transacted operations if a failure occurs. Dispatch behavior is the control of how a message is processed by the WCF infrastructure. </li></ul><ul><li>Extensibility enables customization of runtime processes. For example, message inspection is the facility to inspect parts of a message, and parameter filtering enables preset actions to occur based on filters acting on message headers. </li></ul>
  25. 25. A Performance Comparison of WCF with Existing Distributed Communication Technologies <ul><li>ASP.NET Web Services (ASMX) : WCF is 25%—50% faster than ASP.NET Web Services </li></ul><ul><li>Web Services Enhancements (WSE) : The throughput of WCF is nearly 4 times better than WSE. The main reason for this is that WSE uses the System.Xml.XmlDocument class to do message level parsing, thereby loading the full message into memory at once, while WCF uses a streaming System.Xml.XmlReader class that improves the performance significantly </li></ul><ul><li>.NET Enterprise Services (ES) : .NET Enterprise Service is load dependant, as in one case WCF is nearly 100% faster but in another scenario it is nearly 25% slower. </li></ul><ul><li>.NET Remoting: approximately 25% faster than .NET Remoting </li></ul>http://msdn2.microsoft.com/en-us/library/bb310550.aspx
  26. 26. DEMO-WCF <ul><li>Hello world </li></ul><ul><li>Using svcutil </li></ul>
  27. 27. Windows WorkFlow <ul><li>Windows Workflow Foundation provides a common framework for building workflows into Microsoft Windows applications, whether those workflows coordinate interactions among software, interactions among people, or both </li></ul><ul><li>Unlike traditional Microsoft® .NET Framework programs, workflow-based programs are typically specified in a declarative Extensible Application Markup Language (XAML) document that specifies the structure of the program in terms of domain- specific activities. These activities are typically implemented in a traditional common language runtime (CLR)-based programming language such as C# or Visual Basic </li></ul><ul><li>A workflow can be defined either purely in XAML or with XAML plus a codebehind file that contains C# or Visual Basic code. Pure XAML workflows have the advantage of being directly loadable at run time without a separate compilation step. </li></ul><ul><li>Future releases of other Microsoft products, including BizTalk Server and Microsoft Business Solutions, will also implement their workflow services using Windows Workflow Foundation. And since all of these applications will eventually use the same workflow technology, the advent of Windows Workflow Foundation should make it easier to implement business processes that rely on multiple Windows applications. </li></ul><ul><li>It's important to understand that Windows Workflow Foundation is a framework targeting developers, not a workflow application intended for immediate use by end users. </li></ul>
  28. 28. WorkFlow components <ul><li>Activity —A unit of work. The work an activity implements can range from very simple to quite complex. </li></ul><ul><li>Workflow —A group of activities that implements all or part of a business process. </li></ul><ul><li>WWF designers —Graphical tools that can be used to create and modify workflows and activities. </li></ul><ul><li>WWF base activity library —A fundamental group of activities that developers can use to create workflows. </li></ul><ul><li>WWF runtime engine —A library that executes workflows. The runtime engine also provides other services, such as mechanisms for communicating with software outside the workflow. </li></ul>
  29. 29. WorkFlow components <ul><li>Host process —A Windows application that hosts the Windows Workflow Foundation runtime engine and any workflows it executes. The host process provides supporting runtime services for persisting a workflow's state, handling transactions, and other functions. </li></ul><ul><li>Rules Engine : Windows Workflow Foundation has a rules engine which enables declarative, rule-based development for workflows and any .NET application to use. </li></ul><ul><li>Workflow Designer : Allows for the graphical composition of workflows, by placing activities within the workflow model. One interesting feature of the designer is that it can be re-hosted within any Windows Forms application. </li></ul>
  30. 30. Demo Session <ul><li>Hello World Application:- Creating an Activity and an Simple Sequence Workflow. </li></ul><ul><li>Hosting the Workflow </li></ul>
  31. 31. Windows CardSpace (Infocard) <ul><li>Windows CardSpace enables users to provide their digital identities in a familiar, secure and easy way. In the physical world we use business cards, credit cards and membership cards. Online with CardSpace we use a variety of virtual cards to identify ourselves, each retrieving data from an identity provider </li></ul><ul><li>Windows CardSpace Provides </li></ul><ul><li>Support for any digital identity system </li></ul><ul><li>Consistent user control of digital identity </li></ul><ul><li>Replacement of password-based Web login :Because the security tokens issued by most identity providers, including those created by CardSpace's self-issued identity provider, don't use passwords, relying parties, including websites and others, can use these tokens rather than passwords to authenticate their users. If a site doesn't use passwords, phishers can't trick users into revealing those passwords </li></ul><ul><li>Improved user confidence in the identity of remote applications </li></ul>
  32. 32. Interactions among the user, identity provider, and relying party roles
  33. 33. Interactions among the user, identity provider, and relying party role SCSF recipe implementing MVP
  34. 34. Replacement of password-based Web login
  35. 35. Summary <ul><li>NET Framework 3.0 consists of these basic components: </li></ul><ul><ul><li>Microsoft® Windows® Presentation Foundation (formerly Avalon) </li></ul></ul><ul><ul><li>Microsoft® Windows® Communication Foundation </li></ul></ul><ul><ul><li>(formerly Indigo) </li></ul></ul><ul><ul><li>Microsoft® Windows® Workflow Foundation </li></ul></ul><ul><ul><li>Windows CardSpace® (formerly code named &quot;Infocard&quot;) </li></ul></ul><ul><li>.NET Framework 3.0 is a superset of the .NET Framework, designed to expose the new functionality in Windows Vista® to the developer through managed classes. </li></ul><ul><li>XAML provides declarative markup to separate code and presentation layer </li></ul>
  36. 36. References <ul><li>http://msdn2.microsoft.com/en-us/netframework/default.aspx </li></ul><ul><li>http://www. gotdotnet .com/ </li></ul><ul><li>Email: subodh.pushpak@globallogic.com </li></ul>
  37. 37. Questions and Answers

Hinweis der Redaktion