C# Class Daniel15.BusinessLayer.Services.DisqusComments

Handles synchronisation of comments between Disqus and the local database.
Inheritance: IDisqusComments
Afficher le fichier Open project: Daniel15/Website

Méthodes publiques

Méthode Description
DisqusComments ( IDisqusCommentRepository commentRepository, ISiteConfiguration siteConfiguration ) : System

Initializes a new instance of the DisqusComments class.

Sync ( ) : void

Synchronise all comments on Disqus into the local database

Private Methods

Méthode Description
BuildUrl ( string cursor ) : string

Builds the URL to use for the API request

SyncComment ( dynamic comment ) : void

Synchronise a single comment returned from Disqus

Method Details

DisqusComments() public méthode

Initializes a new instance of the DisqusComments class.
public DisqusComments ( IDisqusCommentRepository commentRepository, ISiteConfiguration siteConfiguration ) : System
commentRepository IDisqusCommentRepository The comment database repository.
siteConfiguration ISiteConfiguration The site configuration.
Résultat System

Sync() public méthode

Synchronise all comments on Disqus into the local database
public Sync ( ) : void
Résultat void