Пример #1
0
        public object Clone()
        {
            CollectionConfiguration cConfiguration = new CollectionConfiguration();

            cConfiguration.Indices = Indices != null ? (Indices)Indices.Clone() : null;
            cConfiguration.Caching = Caching != null?Caching.Clone() as CachingConfiguration : null;

            cConfiguration.CollectionSize        = CollectionSize;
            cConfiguration.MaxDocuments          = MaxDocuments;
            cConfiguration.Shard                 = Shard;
            cConfiguration.EvictionConfiguration = EvictionConfiguration != null ? (EvictionConfiguration)EvictionConfiguration.Clone() : null;
            cConfiguration.PartitionKey          = PartitionKey;
            cConfiguration.Path = Path;
            return(cConfiguration);
        }