IFeedConsumer::ConsumeFeed

Consumes the specified feed and imports the items into the provider that is contained in this object.

HRESULT ConsumeFeed(
ISyncProvider * pStoreProvider,
  IFeedIdConverter * pIdConverter,
  IFeedItemConverter * pItemConverter,
  CONFLICT_RESOLUTION_POLICY resolutionPolicy,
  ISyncCallback * pCallback,
  IStream * pFeedStream,
  IEndpointState ** ppInputFeedState);

Parameters

  • pStoreProvider
    [in] The synchronization provider that is importing the feed items to its store.
  • pIdConverter
    [in] A converter that translates feed IDs to the format that the provider expects.
  • pItemConverter
    [in] A converter that translates feed items to the format that the provider expects.
  • resolutionPolicy
    [in] The policy to use for resolving conflicts. If this value is CRP_NONE, the ISyncCallback::OnConflict method of pCallback is called to achieve custom conflict resolution.
  • pCallback
    [in, unique] A callback interface that Sync Services for FeedSync can use to report events that occur during synchronization.
  • pFeedStream
    [in] A stream that contains the FeedSync feed to be consumed. Sync Services for FeedSync must have read access to the stream.
  • ppInputFeedState
    [out] The endpoint state of the feed. This value is NULL when the feed is empty.

Return Value

Remarks

When the endpoint state returned in ppInputFeedState is specified in the IFeedProducer::ProduceFeed method, the IFeedProducer object will produce an incremental feed that is based on pFeedStream.

See Also

Reference

IFeedConsumer Interface