Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DittoCacheContext"/> class.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <param name="content">The content.</param>
 /// <param name="targetType">Type of the target.</param>
 /// <param name="culture">The culture.</param>
 internal DittoCacheContext(DittoCacheableAttribute attribute,
                            IPublishedContent content,
                            Type targetType,
                            CultureInfo culture)
     : this(attribute, content, targetType, null, culture)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DittoCacheContext"/> class.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <param name="content">The content.</param>
 /// <param name="targetType">Type of the target.</param>
 /// <param name="propertyDescriptor">The property descriptor.</param>
 /// <param name="culture">The culture.</param>
 internal DittoCacheContext(DittoCacheableAttribute attribute,
                            IPublishedContent content,
                            Type targetType,
                            PropertyDescriptor propertyDescriptor,
                            CultureInfo culture)
 {
     Attribute          = attribute;
     Content            = content;
     TargetType         = targetType;
     Culture            = culture;
     PropertyDescriptor = propertyDescriptor;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DittoCacheContext"/> class.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <param name="content">The content.</param>
 /// <param name="targetType">Type of the target.</param>
 /// <param name="propertyInfo">The property info.</param>
 /// <param name="culture">The culture.</param>
 internal DittoCacheContext(
     DittoCacheableAttribute attribute,
     IPublishedContent content,
     Type targetType,
     PropertyInfo propertyInfo,
     CultureInfo culture)
 {
     this.Attribute    = attribute;
     this.Content      = content;
     this.TargetType   = targetType;
     this.Culture      = culture;
     this.PropertyInfo = propertyInfo;
 }