다음을 통해 공유


ActivityFeedGatherer.MulticastActivityEvents Method

Distributes the specified events to all colleagues of event owners.

Namespace:  Microsoft.Office.Server.ActivityFeed
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Shared Sub MulticastActivityEvents ( _
    objManager As ActivityManager, _
    eventsToTryToMulticast As List(Of ActivityEvent), _
    colleaguesOfOwners As Dictionary(Of Long, List(Of MinimalPerson)), _
    <OutAttribute> ByRef eventsConsolidatedPerOwner As Dictionary(Of Long, List(Of ActivityEvent)) _
)
'Usage
Dim objManager As ActivityManager
Dim eventsToTryToMulticast As List(Of ActivityEvent)
Dim colleaguesOfOwners As Dictionary(Of Long, List(Of MinimalPerson))
Dim eventsConsolidatedPerOwner As Dictionary(Of Long, List(Of ActivityEvent))

ActivityFeedGatherer.MulticastActivityEvents(objManager, _
    eventsToTryToMulticast, colleaguesOfOwners, _
    eventsConsolidatedPerOwner)
public static void MulticastActivityEvents(
    ActivityManager objManager,
    List<ActivityEvent> eventsToTryToMulticast,
    Dictionary<long, List<MinimalPerson>> colleaguesOfOwners,
    out Dictionary<long, List<ActivityEvent>> eventsConsolidatedPerOwner
)

Parameters

Remarks

Since this method creates new ActivityEvent objects for each specified colleague, these events need to be committed to the database. Use the CollectActivityEventsToConsolidate method to convert the eventsConsolidatedPerOwner parameter into a List and then pass that list to the BatchWriteActivityEvents method.

See Also

Reference

ActivityFeedGatherer Class

ActivityFeedGatherer Members

Microsoft.Office.Server.ActivityFeed Namespace