private void SetupTable()
{
try
{
this._table = Table.LoadTable(this._ddbClient, this._tableName, Table.DynamoDBConsumer.SessionStateProvider);
}
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();
}
}