private DateRangeBlogDataAdapter(EntityReference blog, DateTime min, DateTime max, IDataAdapterDependencies dependencies, BlogSecurityInfo security) { if (blog == null) { throw new ArgumentNullException("blog"); } if (dependencies == null) { throw new ArgumentNullException("dependencies"); } if (security == null) { throw new ArgumentNullException("security"); } if (blog.LogicalName != "adx_blog") { throw new ArgumentException(string.Format("Value must have logical name {0}.", blog.LogicalName), "blog"); } Blog = blog; Dependencies = dependencies; Security = security; Min = min; Max = max; _dataAdapter = new BlogDataAdapter(blog, dependencies); }
private AuthorBlogDataAdapter(EntityReference blog, Guid authorId, IDataAdapterDependencies dependencies, BlogSecurityInfo security) { if (blog == null) { throw new ArgumentNullException("blog"); } if (dependencies == null) { throw new ArgumentNullException("dependencies"); } if (security == null) { throw new ArgumentNullException("security"); } if (blog.LogicalName != "adx_blog") { throw new ArgumentException(string.Format("Value must have logical name {0}.", blog.LogicalName), "blog"); } Blog = blog; AuthorId = authorId; Dependencies = dependencies; Security = security; _dataAdapter = new BlogDataAdapter(blog, dependencies); }
public BlogSyndicationFeedFactory(IBlogDataAdapter dataAdapter) { if (dataAdapter == null) { throw new ArgumentNullException("dataAdapter"); } _dataAdapter = dataAdapter; }
public SiteMapNodeBlogDataAdapter(SiteMapNode node, IDataAdapterDependencies dependencies) { if (node == null) { throw new ArgumentNullException("node"); } if (dependencies == null) { throw new ArgumentNullException("dependencies"); } _blogDataAdapter = CreateBlogDataAdapter(node, dependencies); }