Class JSONProvider
- Namespace
- Dynamicweb.Ecommerce.Feeds
- Assembly
- Dynamicweb.Ecommerce.dll
[AddInName("Dynamicweb.Ecommerce.Feeds.JSONProvider")]
[AddInLabel("JSON feed provider")]
[AddInActive(true)]
public class JSONProvider : FeedProvider, IParameterOptions
- Inheritance
-
JSONProvider
- Implements
- Inherited Members
Properties
IndentOutput
[AddInParameter("Indent output")]
[AddInLabel("Indent output (pretty-print)")]
[AddInParameterGroup("Options")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool IndentOutput { get; set; }
Property Value
Methods
GetContentType()
Gets the content type for the output
public override string GetContentType()
Returns
GetOutput(Feed, FeedContextConfiguration)
This method is used to get the output of the feed
public override string GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration)
Parameters
feedFeedThe feed which should be used as the source for the output
feedContextConfigurationFeedContextConfiguration
Returns
GetOutputAsync(Feed, FeedContextConfiguration, CancellationToken)
Async version of GetOutput. Backwards compatible: default implementation calls the sync GetOutput. Override this in new providers that can do real async work.
public override Task<string> GetOutputAsync(Feed feed, FeedContextConfiguration feedContextConfiguration, CancellationToken cancellationToken = default)
Parameters
feedFeedfeedContextConfigurationFeedContextConfigurationcancellationTokenCancellationToken