Learning WCF by Michele Leroux Bustamante

Learning WCF by Michele Leroux Bustamante

Author:Michele Leroux Bustamante [Michele Leroux Bustamante]
Language: eng
Format: epub
Tags: COMPUTERS / Operating Systems / Windows Workstation
ISBN: 9780596158668
Publisher: O'Reilly Media
Published: 2008-12-16T16:00:00+00:00


Figure 5-11. WinClient application interface

Start by testing the service's instancing behavior. First, run the Host project without debugging, and then run the WinClient application. From the WinClient interface, select BasicHttpBinding and select No Exception. This creates a new proxy for the selected endpoint and calls IncrementCounter( ) twice:

CounterServiceClient proxy = GetProxy( ); proxy.IncrementCounter( ); proxy.IncrementCounter( );

You'll notice in each message box presented that the session identifier is not set because there is no session for PerCall services. Also notice that repeated calls to IncrementCounter( ) result in a new service instance because a new service instance is allocated; thus, the counter is reinitialized each time.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.