Resource Page DescriptionA console application that demonstrates the basic functions of a custom activity feed gatherer application.
This sample demonstrates how to use the new Activity Feed object model in Microsoft SharePoint Server 2010 to create and multicast activity events. It creates a custom activity feed gatherer and custom ActivityTemplate, ActivityType, and ActivityEvent objects, and then shows how to publish and multicast events from a custom activity fee gatherer. Console output verifies that each step in the application is finished.
Building and Running the Sample
The following steps demonstrate how to test this project on your development or test site.
To build the sample
- Create a folder named Microsoft.SDK.Server.Samples and unzip the CustomActivityGatherer.zip file in it.
- Start Microsoft Visual Studio 2010, and then open the ActivityFeedSample.sln file that is in the folder that you created in step 1.
- Change the values of the sampleSite and communityUrl strings in CustomActivityGatherer.cs to the appropriate URLs for your development or test site.
- If they are not already present, add references to the following assemblies to the project:
- Microsoft.SharePoint.dll
- Microsoft.Office.Server.dll
- Microsoft.Office.Server.UserProfiles.dll
- Add the resource files in the ULS-Resources-Dir directory (customgatherer.en-US.resx and customgatherer.resx) to your \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Resources directory.
To run the sample
- Press F5 to build the project and start the debugging process.
- After the console output indicates that the custom gatherer has finished doing its work, press any key to stop debugging.
|