Example #1
0
        public void SetComposites(long association, object cacheId, IRoleType roleType, long[] role)
        {
            if (!this.cachedCompositesRoleByAssociationByRoleType.TryGetValue(roleType, out var entryByAssociation))
            {
                entryByAssociation = new Dictionary <long, CachedCompositesRole>();
                this.cachedCompositesRoleByAssociationByRoleType[roleType] = entryByAssociation;
            }

            entryByAssociation[association] = new CachedCompositesRole(cacheId, role);
        }
Example #2
0
        public void SetComposites(ObjectId association, object cacheId, IRoleType roleType, ObjectId[] role)
        {
            Dictionary<ObjectId, CachedCompositesRole> entryByAssociation;
            if (!this.cachedCompositesRoleByAssociationByRoleType.TryGetValue(roleType, out entryByAssociation))
            {
                entryByAssociation = new Dictionary<ObjectId, CachedCompositesRole>();
                this.cachedCompositesRoleByAssociationByRoleType[roleType] = entryByAssociation;
            }

            entryByAssociation[association] = new CachedCompositesRole(cacheId, role);
        }