/// <summary>
 /// Implemtentation of the interface ICustomTokenProvider
 /// </summary>
 /// <param name="page"></param>
 /// <param name="moduleContext"></param>
 /// <returns></returns>
 public IDictionary<string, IPropertyAccess> GetTokens(Page page, ModuleInstanceContext moduleContext)
 {
     var tokens = new Dictionary<string, IPropertyAccess>();
     tokens["preloadeddata"] = new PreloadedDataPropertyAccess(moduleContext.PortalId);
     tokens["contactsettings"] = new SettingsPropertyAccess(moduleContext.ModuleId, moduleContext.TabId);
     
     return tokens;
 }
Beispiel #2
0
        /// <summary>
        /// Implemtentation of the interface ICustomTokenProvider
        /// </summary>
        /// <param name="page"></param>
        /// <param name="moduleContext"></param>
        /// <returns></returns>
        public IDictionary <string, IPropertyAccess> GetTokens(Page page, ModuleInstanceContext moduleContext)
        {
            var tokens = new Dictionary <string, IPropertyAccess>();

            tokens["preloadeddata"]   = new PreloadedDataPropertyAccess(moduleContext.PortalId);
            tokens["contactsettings"] = new SettingsPropertyAccess(moduleContext.ModuleId, moduleContext.TabId);

            return(tokens);
        }