Exemplo n.º 1
0
        public EventsDrop(IPortalLiquidContext portalLiquidContext, Adxstudio.Xrm.Cms.IDataAdapterDependencies dependencies)
            : base(portalLiquidContext)
        {
            if (dependencies == null)
            {
                throw new ArgumentException("dependencies");
            }

            _dependencies = dependencies;

            var eventDataAdapter = new EventDataAdapter(dependencies);

            _adapter = eventDataAdapter;
        }
Exemplo n.º 2
0
 public PortalViewContext(IDataAdapterDependencies dependencies, SiteMapProvider siteMapProvider = null, string portalName = null,
                          RequestContext requestContext = null)
     : this(
         GetSettingDataAdapter(dependencies),
         GetSiteMarkerDataAdapter(dependencies),
         GetSnippetDataAdapter(dependencies),
         GetWebLinkSetDataAdapter(dependencies),
         GetAdDataAdapter(dependencies),
         GetPollDataAdapter(dependencies),
         dependencies.GetUrlProvider(),
         siteMapProvider,
         portalName,
         requestContext)
 {
 }
Exemplo n.º 3
0
 private static IPollDataAdapter GetPollDataAdapter(IDataAdapterDependencies dependencies)
 {
     return(new PollDataAdapter(dependencies));
 }
Exemplo n.º 4
0
 private static IAdDataAdapter GetAdDataAdapter(IDataAdapterDependencies dependencies)
 {
     return(new AdDataAdapter(dependencies));
 }
Exemplo n.º 5
0
 private static IWebLinkSetDataAdapter GetWebLinkSetDataAdapter(IDataAdapterDependencies dependencies)
 {
     return(new WebLinkSetDataAdapter(dependencies));
 }
Exemplo n.º 6
0
        private static ISnippetDataAdapter GetSnippetDataAdapter(IDataAdapterDependencies dependencies)
        {
            var website = HttpContext.Current.GetWebsite();

            return(new RequestCachingSnippetDataAdapter(new SnippetDataAdapter(dependencies), website.Entity.ToEntityReference()));
        }