コード例 #1
0
        /// <summary>
        /// Converts this instance to full <see cref="CacheConfiguration"/>.
        /// </summary>
        public CacheConfiguration ToCacheConfiguration()
        {
            var cfg = new CacheConfiguration();

            ClientCacheConfigurationSerializer.Copy(this, cfg);

            return(cfg);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CacheClientConfiguration" /> class, copying properties from
        /// provided server cache configuration. See also <see cref="ToCacheConfiguration"/>.
        /// </summary>
        /// <param name="cacheConfiguration">Server cache configuration.</param>
        /// <param name="ignoreUnsupportedProperties">If set to <c>true</c>,
        /// ignores unsupported properties instead of throwing an exception.</param>
        public CacheClientConfiguration(CacheConfiguration cacheConfiguration, bool ignoreUnsupportedProperties)
        {
            IgniteArgumentCheck.NotNull(cacheConfiguration, "cacheConfiguration");

            ClientCacheConfigurationSerializer.Copy(cacheConfiguration, this, ignoreUnsupportedProperties);
        }