private static ClusterOptions DefaultLocalhostConfig(Action <CouchbaseLinqConfiguration> setupAction = null) { EnsureConfigurationLoaded(); var options = new ClusterOptions(); _jsonConfiguration.GetSection("couchbase").Bind(options); options.AddLinq(setupAction); return(options); }
/// <summary> /// Add Linq2Couchbase support to the cluster. /// </summary> /// <param name="options">Options to extend.</param> /// <returns>The <see cref="ClusterOptions"/> to allow chaining.</returns> public static ClusterOptions AddLinq(this ClusterOptions options) => options.AddLinq(null);