/// <summary> /// Helper class constructor to work with Reusable Content. /// </summary> /// <param name="logger">The logger to log info and errors</param> /// <param name="listLocator">List locator to find the ReusableContentList</param> /// <param name="camlBuilder">Caml Builder for the query</param> /// <param name="binder">The entity binder</param> public ReusableContentHelper(ILogger logger, IListLocator listLocator, ICamlBuilder camlBuilder, ISharePointEntityBinder binder) { this.logger = logger; this.listLocator = listLocator; this.camlBuilder = camlBuilder; this.binder = binder; }
/// <summary> /// Initializes a new instance of the <see cref="DiscussionRepository" /> class. /// </summary> /// <param name="config">The configuration.</param> /// <param name="camlBuilder">The CAML builder.</param> /// <param name="listLocator">The list locator.</param> /// <param name="binder">The binder.</param> /// <param name="logger">The logger.</param> public DiscussionRepository( ISocialDiscussionsConfig config, ICamlBuilder camlBuilder, IListLocator listLocator, ISharePointEntityBinder binder, ILogger logger) { this.config = config; this.camlBuilder = camlBuilder; this.listLocator = listLocator; this.binder = binder; this.logger = logger; }
/// <summary> /// Utility to find items by name or url /// </summary> /// <param name="listLocator">List locator utility</param> /// <param name="caml">CAML building utility</param> public ItemLocator(IListLocator listLocator, ICamlBuilder caml) { this.listLocator = listLocator; this.caml = caml; }