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
objManager
Type: Microsoft.Office.Server.ActivityFeed.ActivityManagerThe ActivityManager associated with this gatherer.
eventsToTryToMulticast
Type: System.Collections.Generic.List<ActivityEvent>A list of ActivityEvent objects to multicast to colleagues of the event owners.
colleaguesOfOwners
Type: System.Collections.Generic.Dictionary<Int64, List<MinimalPerson>>A dictionary containing the colleague identifier for each owner and the associated list of colleagues. Each colleague is a MinimalPerson object.
eventsConsolidatedPerOwner
Type: System.Collections.Generic.Dictionary<Int64, List<ActivityEvent>>A dictionary containing the record identifier for each owner and that owner’s ActivityEvent objects. This is the output of this method.
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.