Sample Gallery > Misc
Your selection returned: 26 item(s) Search:
 
Sample Name & Description   Filter By:
WorkflowInvoker

The WorkflowInvoker is a stateless static class invoking a Workflow from WCF using the following steps:

  • Create Invoker (plumbing WCF + WF included an operation ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 22 2006
Downloads: 119
Views: 639
Rating: Not Rated
DuplexSample
The one is an application just like chatroom using by duplex. The other one shows the Async callback using by duplex.

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 22 2006
Downloads: 153
Views: 630
Rating: Not Rated
Asynchronous calls
WCF offers a the client a facility for dispatching calls to the service asynchronously. This is strictly a client-side feature, and the service itself is completely unaware that it is being called asynchronously. The client obviously needs a way to be notified when the calls complete and be able to ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 147
Views: 555
Rating: Not Rated
Timer Service
The download contains an interesting concept – a service that acts like a timer, calling back to its clients on requested intervals. The service actually uses the .NET timer and delegates, and is a nice demo of how to bridge the two technologies - the timer delegates and the WCF callbacks.

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 67
Views: 301
Rating: Not Rated
Manual UI Updates
When callbacks enter the client, they do so on a worker thread. If the callback object is a Windows Forms object, that worker thread cannot access the form directly, and instead, the call must be marshaled to the UI thread. Fortunately, WCF can do that automatically for you. Simply call the proxy on ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 57
Views: 266
Rating: Not Rated
Thread Affinity
By default, WCF will establish an affinity between the service host and the synchronization context it was created on. Since by default there is no synchronization context, client calls are services on arbitrary worker threads. The download contains a custom .NET 2.0 synchronization context that ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 29
Views: 172
Rating: Not Rated
Service Contract Inheritance
On the service side, WCF lets you define and use a contract hierarchy simply by applying the ServiceContract attribute at every level of the interface hierarchy, deriving and implementing it. The service can even expose a single endpoint for all contracts. However, the imported metadata definitions ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 42
Views: 211
Rating: Not Rated
Contract Overloading
While C# and VB.NET will let you overload interface methods, by default, WCF will not let you overload contract operations. However, using simple aliasing you could provide both the service and the client the overloaded programming model, as shown in the download.

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 130
Views: 320
Rating: Not Rated
Data Contracts Versioning
WCF lets the client and the service version independently their definitions of the same data contract. If the client sends a type with a missing member the service expects, the missing member on the service side will be initialized to its default value. If the data type contains a member the service ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 46
Views: 214
Rating: Not Rated
Data Extensions and Round Trip
While the default behavior of a data contract type is to simply ignore extraneous unexpected members, you can instruct it to still store and pass it along to and from the service by implementing IExtensibleDataObject. This enables a round-trip scenario, where a new client is calling an old service ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 22
Views: 138
Rating: Not Rated
Metadata Explorer
The Metadata Explorer is a helper utility that visualizes the available service endpoints of a running service. This is done using metadata exchange - roughly the WCF equivalent of .NET reflection. Metadata contains not just contracts and operations but also information about security, transactions, ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 39
Views: 190
Rating: Not Rated
Instancing Modes
WCF supports three classics instance management modes: per-call assigned a new instance per request, per-session assigns a private instance for the client for the duration of the session, and a singleton instance serves all clients regardless of sessions and connections. You control these modes ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 44
Views: 199
Rating: Not Rated
Service Reference
WCF lets you configure the service to have a sharable session, thus allowing two clients to share a reference to the same service instance. But configuring for a sharable session is not enough: you have to manually rework the generated proxy and resolve references. The download shows the required ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 31
Views: 153
Rating: Not Rated
Events
The classic use for callbacks in WCF is for events. The service can maintain a list of callbacks, and notify them when some event takes place on the service side. The service contract can define subscribe and unsubscribe operations, and take a masked enum to allow the clients to chose which event to ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 67
Views: 270
Rating: Not Rated
Online/Offline Service
An occasionally connected service can issue direct synchronous calls when connected and queued called over MSQM when disconnected. The download contains a service that exposes both a queued and regular endpoint. The client uses the network events to monitor the network status, and uses the queued ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 41
Views: 191
Rating: Not Rated
Concurrent Transactions
WCF allows you to combine the work of multiple threads in a single transaction. You need to provide each worker thread with a clone of the original transactions, and signal to the original client thread when the worker threads have completed their work. The download shows a simple banking ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 56
Views: 353
Rating: Not Rated
Volatile Resource Managers
A transactional service can interact not just with databases but also with volatile resource managers. The download makes use of IDesign’s implementation of the transactional collections (now part of MSDN). The service and client configuration is exactly the same as with the database centric ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 11 2006
Downloads: 40
Views: 298
Rating: Not Rated
Channel Closing Event
This sample will subscribe to the Channel_Closing event to inform the server when a channel has been closed. In addition, it subscribes to the ServiceHost_closing event to notify all its clients when it's closing as well.

The sample uses WSDualHttpbinding and the NetTCPBinding and stores ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 09 2006
Downloads: 189
Views: 298
Rating: Not Rated
WS-Transfer
The Web Service Transfer (WS-Transfer) represents a specification to capture the current or intended state of the resource and transferring that representation between components. It is an abstraction of the architectural elements within the distributed heterogeneous systems. The WS-Transfer ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: April 09 2006
Downloads: 104
Views: 685
Rating: Not Rated
Simple Client Message Inspector
A hello world equivalent of the MessageInspector sample in the SDK. This enabels simple client Message inspection.

download this sample 
see more details
Windows Communication Foundation Version: Beta 1
Last Updated: April 08 2006
Downloads: 51
Views: 232
Rating: Not Rated
Sync/async processing on client and server
This WCF example works with the Feb 06 CTP bits and the AdventureWorks demo database in SQL 2005. It illustrates mixing and matching synchronous and asynchronous processing in a WCF service and client. Specifically, the code shows: 1) a synchronous client invoking a synchronous service 2) a ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: March 23 2006
Downloads: 133
Views: 588
Rating: Not Rated
IExtension Sample
This sample demonstrates the use of IExtension to store state at the ServiceHost level, the Instance level and the operation level. The server is self-hosted with two separate servicehost's. One servicehost contains one endpoint and the other contains three. Each contract contains two operations. ...

download this sample 
see more details
Windows Communication Foundation Version: February CTP
Last Updated: March 02 2006
Downloads: 513
Views: 889
Rating: Not Rated
Dynamic Proxy
The DynamicProxy allows you to create the dynamic WCF client at runtime by specifying the WSDL URI of the service. The DynamicProxy does not depend on the precompiled proxy or configuration. The DynamicProxy uses the MetadataResolver to download the metadata from the service and WsdlImporter to ...

download this sample 
see more details
Windows Communication Foundation Version: November/January
Last Updated: February 21 2006
Downloads: 547
Views: 891
Rating: Not Rated
Football Reporter
This sample application demostrates how duplex channels can be used over HTTP in Indigo.

It simulates a reporter at a football match sending in match updates to the Broadcaster. The Broadcaster (via a callback) sends the current league standings using the latest results, to all ...

download this sample 
see more details
Windows Communication Foundation Version: November/January
Last Updated: January 31 2006
Downloads: 155
Views: 883
Rating: Not Rated
WinFX Bingo
This project consists of a bingo game that uses duplex communication. It also contains two client implementations, one using Windows Forms and the other using Avalon (WPF).

download this sample 
see more details
Windows Communication Foundation Version: November/January
Last Updated: January 31 2006
Downloads: 159
Views: 893
Rating: Not Rated
Pinning Router
This sample demonstrates a basic implementation of a “pinning router.” A pinning router belongs to a class of SOAP intermediaries whose job is to selectively pick a service instance from a “service farm” for each client’s session, and from then on forward all messages coming from that client on that ...

download this sample 
see more details
Windows Communication Foundation Version: November/January
Last Updated: January 18 2006
Downloads: 583
Views: 1142
Rating: Not Rated