Table of Contents

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

bool

Methods

GetContentType()

Gets the content type for the output

public override string GetContentType()

Returns

string

GetOutput(Feed, FeedContextConfiguration)

This method is used to get the output of the feed

public override string GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration)

Parameters

feed Feed

The feed which should be used as the source for the output

feedContextConfiguration FeedContextConfiguration

Returns

string

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

feed Feed
feedContextConfiguration FeedContextConfiguration
cancellationToken CancellationToken

Returns

Task<string>
To top