internal RedisSessionStateStoreOptions(RedisSessionStateStoreOptions other) { KeySeparator = other.KeySeparator ?? defaultKeySeparator; DistributedLockAcquisitionTimeoutSeconds = other.DistributedLockAcquisitionTimeoutSeconds ?? defaultDistributedLockAcquisitionTimeoutSeconds; DistributedLockTimeoutSeconds = other.DistributedLockTimeoutSeconds ?? defaultDistributedLockTimeoutSeconds; OnDistributedLockNotAcquired = other.OnDistributedLockNotAcquired ?? defaultOnDistributedLockNotAcquired; }
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; }
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; Log.Information("Options have been reset."); }