public static void SetOptions(RedisSessionStateStoreOptions options) { if (options == null) { throw new ArgumentNullException("options"); } if (RedisSessionStateStoreProvider.options != null) { throw new InvalidOperationException("The options have already been configured."); } // Clone so that we don't allow references to be modified once // configured. RedisSessionStateStoreProvider.options = new RedisSessionStateStoreOptions(options); }
internal static void ResetOptions() { options = null; }