示例#1
0
 public Memory(ISingleCache _SingleCache,IListCache _ListCache, IHashCache _HashCache, ITreeCache _TreeCache)
 {
     SingleCache = _SingleCache;
     ListCache = _ListCache;
     HashCache = _HashCache;
     TreeCache = _TreeCache;
 }
 public HistoryItemAssembler(ILogger logger, IHistoryEmployeeAssembler employeeAssembler, IHistoryContactAssembler contactAssembler, IListCache listCache)
 {
     _logger = logger;
     _employeeAssembler = employeeAssembler;
     _contactAssembler = contactAssembler;
     _listCache = listCache;
 }
 public HistoryItemAssembler(ILogger logger, IHistoryEmployeeAssembler employeeAssembler, IHistoryContactAssembler contactAssembler, IListCache listCache)
 {
     _logger            = logger;
     _employeeAssembler = employeeAssembler;
     _contactAssembler  = contactAssembler;
     _listCache         = listCache;
 }
示例#4
0
 public UserImpersonationService(IApplicationClarifySession applicationSession,
                                 IListCache listCache,
                                 DovetailDatabaseSettings settings,
                                 ILogger logger)
 {
     _applicationSession = applicationSession;
     _listCache          = listCache;
     _settings           = settings;
     _logger             = logger;
 }
 public UserImpersonationService(IApplicationClarifySession applicationSession,
     IListCache listCache,
     DovetailDatabaseSettings settings,
     ILogger logger)
 {
     _applicationSession = applicationSession;
     _listCache = listCache;
     _settings = settings;
     _logger = logger;
 }
 public HistoryBuilder(ISchemaCache schema, IOutputEncoder encoder, IHistoryMapEntryBuilder entries, IClarifyListCache lists, IServiceLocator services, IHistoryMapRegistry models, IListCache listCache)
 {
     _schema    = schema;
     _encoder   = encoder;
     _entries   = entries;
     _lists     = lists;
     _services  = services;
     _models    = models;
     _listCache = listCache;
 }
        public static string GetLocalizedTitleByObjid(this IListCache listCache, string listName, int objid)
        {
            var globalStringElementCollection = listCache.GetGbstListElements(listName, true);

            if (globalStringElementCollection != null)
            {
                var globalStringElement = globalStringElementCollection.Find(t => t.ObjectID == objid);
                return((globalStringElement == null) ? "" : globalStringElement.GetLocalizedTitle(CultureInfo.CurrentCulture));
            }

            var hierarchicalStringElement = listCache.GetHgbstList(listName, true).Find(t => t.ObjectID == objid);

            return((hierarchicalStringElement == null) ? "" : hierarchicalStringElement.GetLocalizedTitle(CultureInfo.CurrentCulture));
        }
        public static string GetLocalizedTitle(this IListCache listCache, string listName, string title)
        {
            var gbstListElements = listCache.GetGbstListElements(listName, true);

            if (gbstListElements != null)
            {
                var globalStringElement = gbstListElements.Find(t => t.Title == title);
                if (globalStringElement != null)
                {
                    return(globalStringElement.GetLocalizedTitle(CultureInfo.CurrentCulture));
                }

                return(title);
            }

            var hierarchicalStringElement = listCache.GetHgbstList(listName, true).Find(t => t.Title == title);

            if (hierarchicalStringElement != null)
            {
                return(hierarchicalStringElement.GetLocalizedTitle(CultureInfo.CurrentCulture));
            }

            return(title);
        }
示例#9
0
 public ClarifyListCache(IListCache listCache, ILocaleCache localeCache)
 {
     _listCache   = listCache;
     _localeCache = localeCache;
 }
示例#10
0
 public get_Name_handler(IListCache listCache)
 {
     _listCache = listCache;
 }
        public override void beforeAll()
        {
            base.beforeAll();

            _listCache = Container.GetInstance <IListCache>();
        }
示例#12
0
 public ClarifyListCache(IListCache listCache, ILocaleCache localeCache)
 {
     _listCache = listCache;
     _localeCache = localeCache;
 }
 public get_Name_handler(IListCache listCache)
 {
     _listCache = listCache;
 }
        public override void beforeAll()
        {
            base.beforeAll();

            _listCache = Container.GetInstance<IListCache>();
        }