I'm new to WCF and Async. I have a service with a Begin and End on a long running method.
[ServiceContract]
public interface IDocImagingStatusService
{
[OperationContract(AsyncPattern = true)]
IAsyncResult BeginGetDirectoryCount(AsyncCallback callback, object state);
IList<DirectoryCounts> EndGetDirectoryCount(IAsyncResult result);
}
My client needs to call BeginGetDirectoryCount but all I see is a GetDirectoryCount() method. Where did they go?
var docImgSvc = new DocImagingService.DocImagingStatusServiceClient( "WSHttpBinding_IDocImagingStatusService");
docImgSvc.GetDirectoryCount();