Ejemplo n.º 1
0
 public TableAndLockProvider GetStateProvider(String tableName, int agentInstanceId, bool writesToTables)
 {
     TableStateInstance instance = AssertGetState(tableName, agentInstanceId);
     ILockable @lock = writesToTables ? instance.TableLevelRWLock.WriteLock : instance.TableLevelRWLock.ReadLock;
     if (instance is TableStateInstanceGrouped)
     {
         return new TableAndLockProviderGroupedImpl(new TableAndLockGrouped(@lock, (TableStateInstanceGrouped)instance));
     }
     else
     {
         return new TableAndLockProviderUngroupedImpl(new TableAndLockUngrouped(@lock, (TableStateInstanceUngrouped)instance));
     }
 }
Ejemplo n.º 2
0
 internal TableToPublicEnumerator(TableStateInstance tableStateInstance)
 {
     _eventToPublic      = tableStateInstance.TableMetadata.EventToPublic;
     _enumerator         = tableStateInstance.EventCollection.GetEnumerator();
     _tableStateInstance = tableStateInstance;
 }
Ejemplo n.º 3
0
 public TableStateViewablePublic(TableMetadata tableMetadata, TableStateInstance tableStateInstance)
 {
     _tableMetadata      = tableMetadata;
     _tableStateInstance = tableStateInstance;
 }
Ejemplo n.º 4
0
 public TableStateViewableInternal(TableMetadata tableMetadata, TableStateInstance tableStateInstance, ExprEvaluator[] optionalTableFilters)
 {
     _tableMetadata        = tableMetadata;
     _tableStateInstance   = tableStateInstance;
     _optionalTableFilters = optionalTableFilters;
 }