Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Making Async Work

 
 
Thread Tools Display Modes
Old 07-19-2006   #1 (permalink)
ryan.mclean@gmail.com
Guest


 

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

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making 108Mbps work krypt0 Network & Internet 3 05-16-2008 11:11 PM
making ALT tab work like MS WIndows key Tab? boe Vista General 2 04-25-2008 04:57 AM
Making my DVD writer work again! Josh Vista hardware & devices 4 08-21-2007 02:12 PM
Making Remote Assist Work?? Mr C Vista General 1 08-05-2007 08:24 PM
Making Vista act like it is XP? (To make older programs work) NormBo Vista General 3 03-30-2007 12:56 AM








Vistax64.com 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 2005-2008

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 47 48 49 50