Hi, I've Created a good presentation to introduce the new Microsoft Silverlight 4 Technology. Hope it's really useful for all of you; You can share it with your friends if you need :) | ||
For More Info Please Visit: Silverlight Official Web Site |
Sunday, December 26, 2010
Introduction to Silverlight 4
Saturday, October 16, 2010
Transactions in WCF: (WCF Part 11)
The most important part to understand from my opinion when working with WCF is the transaction part. WCF supports two types of transactions: shared transactions and transacted messaging. WCF supports two transaction protocols:
Transaction Process (Client & Server Side) 1-Client Side
As well as specifying transaction requirements, the client can control the isolation level and timeout for the transaction by using a TransactionOptions object:
2-Server Side The ServiceBehavior attribute enables you to configure the service as a whole for transaction time-outs, isolation level, and whether transactions complete when a session closes. The OperationBehavior attribute helps you to control whether a transaction is required for an operation, and whether transactions complete if no exception is thrown. WCF can use Microsoft Message Queuing, or MSMQ, to pass messages between clients and services. Queuing can improve application resilience and scalability. Reliable Sessions in WCF: A reliable session provides session-based delivery for WCF messages, regardless of the number or type of transport intermediaries between two endpoints. Reliable sessions handle lost or duplicated messages. Messages are delivered exactly once, and can optionally be delivered in order. If a message cannot be delivered, the sender is informed. They are enabled by default for theWsDualHttp, NetNamedPipeandMsmqIntegrationbindings, and can be enabled for theNetTcp, WsHttpandWsHttpFederationbindings.
Finally, I’d like to thank all of you for your Attention and hope that you’ve learned something new from these WCF 11 parts that I’ve written :) Mohamed Adel Mahmoud. Microsoft Intern – Senior Microsoft Student Partner – Microsoft Egypt. | ||||||||
For More Info Please Visit: WCF Resources Page |
Security Features of WCF: (WCF Part 10)
WCF provides comprehensive security features in three main areas: transfer security, authentication and authorization of clients, and auditing.
Security Modes of WCF: WCF can provide authentication, privacy, and integrity for messages by using two mechanisms:
You can specify the security for a binding by setting its SecurityMode property. By default, the BasicHttpBinding has no security configured. Other HTTP bindings use WS-Security, and TCP and Named Pipe bindings use Windows security. You can use the .NET PrincipalPermission attribute to restrict access to an operation based on name, role, or authentication status.
| ||
For More Info Please Visit: WCF Resources Page |
Guidelines for Configuring the Transport Layer: (WCF Part 9)
NATs and Firewalls: Streaming Message Transfer: Unidirectional or bidirectional streaming is enabled through the TransferMode property of the transport binding element. Note that there are some restrictions on the use of streaming, especially when using certain WCF features, such as reliable messaging, transactions, and SOAP security, which may require buffering. Transport Quotas: WCF supports two main types of quota: timeouts to guard against denial of service attacks and allocation limits to guard against excessive memory use. | ||
For More Info Please Visit: WCF Resources Page |
Binding in WCF: (WCF Part 8)
Choosing a Predefined Binding in WCF: Defining a Custom Binding in WCF: A binding is made up of a collection of binding elements, each of which describes some feature of the endpoint's communication. It is important to know about transports, encoding, and other elements when you create a custom binding, because you must choose which elements to put into the stack. A binding must specify at least a transport and an encoder. For example, the NetTcpBinding combines the TCP transport with a binary encoder. You may wish to create a new binding to accommodate a new transport or encoding. WCF provides three predefined transports:
In addition to a transport, a binding requires a message encoder to serialize a WCF message into bytes. WCF has three encoders to handle text, binary, and MTOM data. The text encoder supports plain old XML (POX) as well as SOAP encoding. If your encoding requirement is not handled by these three encoders, you can write your own custom encoder. | ||
For More Info Please Visit: WCF Resources Page |
Asynchronous Invocation in WCF (WCF Part 7)
object can be any object you want to pass to the callback function and in WCF it is usually a reference to the proxy:
The callback function is executed when the service operation completes, and the callback function calls the matching End method:
WCF Service Behavior: it's very necessary to demonstrate how the clients will connect with the WCF Services (e.g. How many service instances will be used to serve the clients, operation counts, Error handling, Security, such as impersonation, authorization, Metadata etc) Behaviors may be code-only, or may also use configuration settings. e.g.
OR you can use Throttling: Throttling allows you to set limits on access to a service, such as the number of connections or pending calls. You configure throttling in the configuration file:
Developers can also retrieve the throttling settings at runtime, and modify them before opening the service. Developers can create custom behaviors by using IServiceBehavior and IEndpointBehavior. | ||||||||||||||
For More Info Please Visit: WCF Resources Page |
Monday, September 20, 2010
Fundamentals of Creating a WCF Client (WCF Part 6)
Proxies can be created in one of two ways: A ChannelFactory provides a flexible way to create proxies at runtime, by creating a factory from the address, binding details, and contract details, and then calling CreateChannel on the factory. Creating a Client by Using a Channel Factory:
To send messages you must open the channel. and after finishing you have to Close the channel. The ChannelFactory class has a number of methods and properties that enable you to access features of the underlying channel. e.g the Credentials property:
| ||||||||
For More Info Please Visit: WCF Resources Page |
Sunday, September 19, 2010
WCF Hosting Options: (WCF Part 5)
| |||||
For More Info Please Visit: WCF Resources Page |
WCF Integration with MSMQ and COM+: (WCF Part 4)
Existing component-based application logic hosted in COM+ can be exposed as Web services. Each exposed COM class will be represented by a service, the contract for which is derived directly from the component's interface definition. The COM+ Service Model Configuration tool (ComSvcConfig.exe) is used to create Web services to represent COM interfaces. | ||
For More Info Please Visit: WCF Resources Page |
WCF Features (WCF Part 3)
WCF Message Exchange Patterns: WCF supports three message exchange patterns:
| ||
For More Info Please Visit: WCF Resources Page |
Tools Provided by WCF. (WCF Part 2)
| ||
For More Info Please Visit: WCF Resources Page |
Introduction to Windows Communication Foundation (WCF)
WCF services expose endpoints that clients and services use to exchange messages. Each endpoint consists of an 1- address, 2-a binding, and 3- a contract.
| ||
For More Info Please Visit: WCF Resources Page |
Saturday, August 14, 2010
Writing Data from a database to an XML Document
Using XML and ADO.NET mode, reading a database and writing to an XML document and vice versa is not a big deal. In this section of this article, you will see how to read a database table's data and write the contents to an XML document. The DataSet class provides method to read a relational database table and write this table to an XML file. You use Write Xml method to write a dataset data to an XML file. In this sample example, I have used commonly used Northwind database comes with Office 2000 and later versions. You can use any database you want. Only thing you need to do is just chapter the connection string and SELECT SQ L query. In this sample, I reate a data adapter object and selects all records of Customers table. After that I can fill method to fill a dataset from the data adapter.
In this sample example, I have used OldDb data provides. You need to add reference to the Syste.Data.OldDb namespace to use OldDb data adapters in your program. As you can see: first I create a connection with northwind database using OldDbConnection. After that I create a data adapter object by passing a SELECT SQL query and connection. Once you have a data adapter, you can fill a dataset object using Fill method of the data adapter. Then you can WriteXml method of DataSet, which creates an XML document and write its contents to the XML document. In our sample, we read Customers table records and write DataSet contents to OutputXml.Xml file in C:\ dir.
| |
For more information please Visit: |
Tuesday, June 22, 2010
ASP.NET MVC for Web Form Programmers
Are you comfortable creating ASP.NET Web Form applications but even a little curious about what all the fuss is about MVC and test-driven development? In this session, Web Form junkie Paul Litwin takes a critical look at the world of ASP.NET MVC, but not from any expert point of view. Instead, Paul shares his experience as a Web Form developer who decided to take a closer look at this radical new approach to ASP.NET development. Come hear what Paul learned and if he plans to employ ASP.NET MVC in his future ASP.NET applications. |
For more information please Visit: |