Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Making Async Work

 
 
Old 07-19-2006   #1 (permalink)
ryan.mclean@gmail.com


 
 

Making Async Work

Hi all,
I am brand new to wcf. We have a collection of services that our
asp.net webparts interact with. The way we have made the services is to
have the service, host, and a setup in a solution. Install on a remote
server, and then use svcutil to create the proxy. I hope this is a good
way to accomplish this.

Now we are trying to makes these services behave asynchronously. Here
is what I have so far:

<ServiceContract()> _
Public Interface IAnnouncementService

<OperationContract(IsOneWay:=False, AsyncPattern:=True)> _
Function BeginGetCurrentAnnouncements(ByVal callback As
AsyncCallback, _
ByVal state As Object) As IAsyncResult
Function EndGetCurrentAnnouncements(ByVal result As IAsyncResult)
As DataSet

End Interface

Public Class AnnouncementService
Implements IAnnouncementService

Public Function BeginGetCurrentAnnouncements(ByVal callback As
System.AsyncCallback, _
ByVal state As Object) As System.IAsyncResult _
Implements
IAnnouncementService.BeginGetCurrentAnnouncements

' . . . not sure how much you need

End Sub

Public Function EndGetCurrentAnnouncements(ByVal result As
System.IAsyncResult) _
As System.Data.DataSet _
Implements
IAnnouncementService.EndGetCurrentAnnouncements

' . . . done with processing

End Function

When I start the service and run the utility, the
BeginGetCurrentAnnouncements was not included in the proxy. What am I
missing? I'm not even sure if I am going about this the right way,
the doc I have found are a little limited.

Any information would be helpful.

Thanks and have a nice day,
Ryan


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Making 108Mbps work Network & Sharing
making ALT tab work like MS WIndows key Tab? Vista General
trouble setting a UDP and making it work in media player Vista performance & maintenance
Making my DVD writer work again! Vista hardware & devices
Making Remote Assist Work?? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46