private void ChangeProvider(ProviderTypeOptions providerType) { var config = SessionConfigurationManager.GetConfiguration().GetWritableCopy(); config.Provider = providerType; SessionConfigurationManager.SetConfiguration(config); }
public WritableSessionSettings(string applicationKey, ProviderTypeOptions provider, string customProviderType, string connStringNameOrValue, int expirationTimeInSeconds, TimeSpan expiresIn, FormatterTypeOptions formatter, string customFormatterType, int?maxAsyncThreads) { ApplicationKey = applicationKey; Provider = provider; CustomProviderType = customProviderType; ConnStringNameOrValue = connStringNameOrValue; ExpirationTimeInSeconds = expirationTimeInSeconds; ExpiresIn = expiresIn; Formatter = formatter; CustomFormatterType = customFormatterType; MaxAsyncThreads = maxAsyncThreads; }