Skip to main content

Microsoft Silverlight

Unanswered Question Calling Wcf service with Async() method ???RSS Feed

(0)

bobbby
bobbby

Member

Member

53 points

173 Posts

Calling Wcf service with Async() method ???

hi friends , i wanna know the reason, why in silverlight we are calling wcf service method like this

SampleWebServiceSoapClient client = new SampleWebServiceSoapClient();  

 client.HelloWorldCompleted +=   new EventHandler<HelloWorldCompletedEventArgs>( client_HelloWorldCompleted );

client.HelloWorldAsync();

private void client_HelloWorldCompleted( object sender, HelloWorldCompletedEventArgs e ) 

  {  }

why we cant call wcf service method like calling in aspx page. whats the exact reason to call service like this in silverlight..

Thanks

Bobby

baskarg83
baskarg83

Member

Member

414 points

127 Posts

Re: Calling Wcf service with Async() method ???

 hey

check this

http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2
http://stackoverflow.com/questions/122144/calling-wcf-service-from-silverlight

if it is useful "please mark as Answer"

Sergey.Lutay
Sergey.L...

Contributor

Contributor

7256 points

1,354 Posts

Re: Calling Wcf service with Async() method ???

Hi,

Calls to serve side are async for does not stop a UI thread of Silverlight application.

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

Blog

Twitter

Sincerely,
Sergey Lutay
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities