IFeedResourceProvider Interface

Definition

This optional interface can be implemented by a feed provider to monitor, provide, or alter resources that are requested by the feed web content.

public interface class IFeedResourceProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 327680)]
/// [Windows.Foundation.Metadata.Guid(3786810989, 34976, 16748, 148, 64, 227, 65, 203, 4, 124, 211)]
struct IFeedResourceProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 327680)]
[Windows.Foundation.Metadata.Guid(3786810989, 34976, 16748, 148, 64, 227, 65, 203, 4, 124, 211)]
public interface IFeedResourceProvider
Public Interface IFeedResourceProvider
Attributes

Remarks

Feed providers can specify a web request filter string for a feed in the WebRequestFilter attribute of the Definition element in the provider's package manifest file. Whenever the feed content requests a resource by URI that matches the filter, the request will be intercepted and redirected to the feed provider's implementation of IFeedResourceProvider.OnResourceRequested.

The filter pattern is expressed using the format described in Match Patterns. The filter string in the registration must use Punycode where necessary. All content types will be redirected when matched so the filter should only resolve to content intended to be obtained through the IFeedResourceProvider in the application.

Every GET, PUT or UPDATE request made by a feed web app that matches its registered filter must also match the the origin of the feed registration, specified in the ContentUri attribute of the Definition element in the provider's package manifest file. If the resource does not match in origin, the request will be ignored.

If the provider returns the OnResourceRequested call without setting a FeedResourceResponse in the FeedResourceRequestedArgs, a web fetch will be made. When returning without a FeedResourceResponse, the provider may modify the Headers collection which will then be used by the web fetch.

Methods

OnResourceRequested(FeedResourceRequestedArgs)

Raised when the feed's content requests a resource that matches the web request filter string for a feed in the WebRequestFilter attribute of the Definition element in the provider's package manifest file. For more information, see Feed provider package manifest XML format.

Applies to

See also