/// <summary>
 /// Initializes a new instance of the <see cref="ContentDataInterceptorExtender"/> class.
 /// </summary>
 /// <param name="contentDataInterceptorHandler">The content data interceptor handler (The part of EpiServer interception components).</param>
 /// <param name="interceptorsRegistry">The additional interceptors registry.</param>
 public ContentDataInterceptorExtender(ContentDataInterceptorHandler contentDataInterceptorHandler, IContentDataInterceptonRegistry interceptorsRegistry)
     : base(contentDataInterceptorHandler)
 {
     if (interceptorsRegistry != null)
     {
         _customInterceptors       = interceptorsRegistry.GetCustomInterceptors();
         _autoPropertyInterceptors = interceptorsRegistry.GetAutoPropertyInterceptors();
     }
     else
     {
         _customInterceptors       = Enumerable.Empty <IInterceptor>();
         _autoPropertyInterceptors = Enumerable.Empty <IAutoPropertyInterceptor>();
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentDataInterceptorExtender"/> class.
 /// </summary>
 /// <param name="contentDataInterceptorHandler">The content data interceptor handler (The part of EpiServer interception components).</param>
 /// <param name="interceptorsRegistry">The additional interceptors registry.</param>
 public ContentDataInterceptorExtender(ContentDataInterceptorHandler contentDataInterceptorHandler, IContentDataInterceptonRegistry interceptorsRegistry)
     : base(contentDataInterceptorHandler)
 {
     if (interceptorsRegistry != null)
     {
         _customInterceptors = interceptorsRegistry.GetCustomInterceptors();
         _autoPropertyInterceptors = interceptorsRegistry.GetAutoPropertyInterceptors();
     }
     else
     {
         _customInterceptors = Enumerable.Empty<IInterceptor>();
         _autoPropertyInterceptors = Enumerable.Empty<IAutoPropertyInterceptor>();
     }
 }
 public DebugContentDataInterceptor(ContentDataInterceptorHandler contentDataInterceptorHandler)
 {
     _contentDataInterceptorHandler = contentDataInterceptorHandler;
 }
 public DebugContentDataInterceptor(ContentDataInterceptorHandler contentDataInterceptorHandler)
 {
     _contentDataInterceptorHandler = contentDataInterceptorHandler;
 }
Ejemplo n.º 5
0
 public ExtendedContentTypeModelScanner(ITypeScannerLookup typeScannerLookup, ContentTypeModelRegister typeModelRegister, ContentModelValidator modelValidator, ContentTypeModelRepository contentTypeModelRepository, IContentTypeModelAssigner contentTypeModelAssigner, ContentDataInterceptorHandler modelTypeInterceptorHandler, ContentDataInterceptor modelTypeInterceptor, IContentTypeModelFilter[] filters, IEnumerable <ContentScannerExtension> registerExtensions, IAvailableModelSettingsRepository availableContentTypeService, IContentTypeModelScannerEventsRaiser contentTypeModelScannerEvents) : base(typeScannerLookup, typeModelRegister, modelValidator, contentTypeModelRepository, contentTypeModelAssigner, modelTypeInterceptorHandler, modelTypeInterceptor, filters, registerExtensions, availableContentTypeService, contentTypeModelScannerEvents)
 {
     TypeScannerLookup = typeScannerLookup;
 }