コード例 #1
0
 /// <summary>
 /// Adds common dependencies to the list.
 /// </summary>
 /// <param name="keys"></param>
 /// <param name="contentType"></param>
 /// <param name="item"></param>
 protected virtual void AddCommonDependencies(IList <CacheDependencyKey> keys, Type contentType, ItemViewModel item = null)
 {
     if (contentType.ImplementsInterface(typeof(ICommentable)))
     {
         keys.Add(new CacheDependencyKey()
         {
             Type = typeof(Sitefinity.Services.Comments.IThread)
         });
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DynamicDataItemFieldAccessor"/> class.
 /// </summary>
 /// <param name="itemViewModel">The data item.</param>
 public DynamicDataItemFieldAccessor(ItemViewModel itemViewModel)
     : base()
 {
     this.item = itemViewModel;
 }