in src/DynamoDBSessionStateStore.cs [335:402]
private void GetConfigSettings(NameValueCollection config)
{
this._accessKey = config[CONFIG_ACCESSKEY];
this._secretKey = config[CONFIG_SECRETKEY];
this._profileName= config[CONFIG_PROFILENAME];
this._profilesLocation = config[CONFIG_PROFILESLOCATION];
this._regionName = config[CONFIG_REGION];
this._serviceURL = config[CONFIG_SERVICE_URL];
if (!string.IsNullOrEmpty(config[CONFIG_TABLE]))
{
this._tableName = config[CONFIG_TABLE];
}
if (!string.IsNullOrEmpty(config[CONFIG_APPLICATION]))
{
this._application = config[CONFIG_APPLICATION];
}
if (!string.IsNullOrEmpty(config[CONFIG_CREATE_TABLE_IF_NOT_EXIST]))
{
this._createIfNotExist = bool.Parse(config[CONFIG_CREATE_TABLE_IF_NOT_EXIST]);
}
if (!string.IsNullOrEmpty(config[CONFIG_INITIAL_READ_UNITS]))
{
this._initialReadUnits = int.Parse(config[CONFIG_INITIAL_READ_UNITS]);
}
if (!string.IsNullOrEmpty(config[CONFIG_INITIAL_WRITE_UNITS]))
{
this._initialWriteUnits = int.Parse(config[CONFIG_INITIAL_WRITE_UNITS]);
}
if (!string.IsNullOrEmpty(config[CONFIG_ON_DEMAND_READ_WRITE_CAPACITY]))
{
this._useOnDemandReadWriteCapacity = bool.Parse(config[CONFIG_ON_DEMAND_READ_WRITE_CAPACITY]);
}
if (!string.IsNullOrEmpty(config[CONFIG_STRICT_DISABLE_SESSION]))
{
this._strictDisableSession = bool.Parse(config[CONFIG_STRICT_DISABLE_SESSION]);
}
if (!string.IsNullOrEmpty(config[CONFIG_TTL_ATTRIBUTE]))
{
this._ttlAttributeName = config[CONFIG_TTL_ATTRIBUTE];
}
if (!string.IsNullOrEmpty(config[CONFIG_TTL_EXPIRED_SESSIONS_SECONDS]))
{
this._ttlExtraSeconds = uint.Parse(config[CONFIG_TTL_EXPIRED_SESSIONS_SECONDS]);
}
string applicationName = System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath;
if (applicationName != null)
{
Configuration cfg = WebConfigurationManager.OpenWebConfiguration(applicationName);
if (cfg != null)
{
SessionStateSection sessionConfig = cfg.GetSection("system.web/sessionState") as SessionStateSection;
if (sessionConfig != null)
{
this._timeout = sessionConfig.Timeout;
}
}
}
}