Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 internal static void ResetOptions()
 {
     options = null;
 }