Ejemplo n.º 1
0
        /// <summary>
        /// Configures the cache manager to use the <code>NetJSON</code> based cache serializer with compression.
        /// </summary>
        /// <param name="part">The configuration part.</param>
        /// <param name="settings">The settings to be used during serialization/deserialization.</param>
        /// <returns>The builder instance.</returns>
        public static ConfigurationBuilderCachePart WithNetJSONJsonSerializer(this ConfigurationBuilderCachePart part, NetJSONSettings settings)
        {
            NotNull(part, nameof(part));

            return(part.WithSerializer(typeof(GzNetJSONCacheSerializer), settings));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Configures the cache manager to use the <code>NetJSON</code> based cache serializer with compression.
        /// </summary>
        /// <param name="part">The configuration part.</param>
        /// <returns>The builder instance.</returns>
        public static ConfigurationBuilderCachePart WithGzNetJSONSerializer(this ConfigurationBuilderCachePart part)
        {
            NotNull(part, nameof(part));

            return(part.WithSerializer(typeof(GzNetJSONCacheSerializer)));
        }