Microsoft Office Tutorials and References
In Depth Information
right-click on the project again, and choose add reference. From the add reference window
Browse tab, browse to the folder C:\Windows\Microsoft.NET\assembly\GAC_MSIL\
Microsoft.Office.Visio.Server\v4.0_15.0.0.0__71e9bce111e9429c , choose the file
Microsoft.Office.Visio.Server.dll , and click oK.
at this stage, the project structure should resemble the one in Figure 2-78 .
Figure 2-78. WCF consumer project structure
the code in Listing 2-6 is explained toward the end of this chapter in the section “Understanding the Custom
Data provider Code.”
add the VisioDataproviderservice.cs class file to the project, and copy the code in Listing 2-6
into the file. Make sure you have the correct namespaces as per your project settings.
Listing 2-6. Visio Custom Data Provider Service Class Code
using System;
using System.Data;
using System.Threading;
using System.Xml;
using System.Web;
using Microsoft.Office.Visio.Server;
using VisioDataService.WcfDataService;
namespace DataModules
public class VisioDataProviderService: AddonDataHandler, IAsyncResult
private object _asyncState;
private bool _completeStatus;
WaitHandle IAsyncResult.AsyncWaitHandle
Search JabSto ::

Custom Search