示例#1
0
 public NitroViewAdapter(IViewNitro adaptee, Func <ViewContext, IViewDataContainer, TextWriter, RenderingContext> resolveContext)
 {
     _adaptee        = adaptee;
     _resolveContext = resolveContext;
 }
示例#2
0
 public SitecoreViewAdapter(IView adaptee)
 {
     _adaptee = adaptee;
 }
示例#3
0
 protected virtual IViewNitro CreateAdapter(IViewNitro view)
 {
     return(view);
 }
示例#4
0
 protected override IView CreateAdapter(IView view)
 {
     return(new SitecoreViewAdapter(view));
 }