private void SetupTable()

in src/DynamoDBSessionStateStore.cs [313:333]


        private void SetupTable()
        {
            try
            {
                var tableConfig = CreateTableConfig();
                this._table = Table.LoadTable(this._ddbClient, tableConfig);
            }
            catch (ResourceNotFoundException) { }

            if (this._table == null)
            {
                if (this._createIfNotExist)
                    this._table = CreateTable();
                else
                    throw new AmazonDynamoDBException(string.Format("Table {0} was not found to be used to store session state and autocreate is turned off.", this._tableName));
            }
            else
            {
                ValidateTable();
            }
        }