C# Class Z.Expressions.SqlServer.Eval.SharedList

显示文件 Open project: zzzprojects/Eval-SQL.NET

Public Properties

Property Type Description
InnerList List
LockValue int

Public Methods

Method Description
AcquireLock ( ) : void

Acquires the lock on the shared cache.

ReleaseLock ( ) : void

Releases the lock on the shared cache.

SharedList ( ) : System

Default constructor.

TryAdd ( SQLNETParallelItem value ) : bool

Attempts to add a value in the shared cache for the specified key.

TryGetValue ( int key, SQLNETParallelItem &value ) : bool

Attempts to get value from the shared cache for the specified key.

TryRemove ( SQLNETParallelItem value ) : void

Method Details

AcquireLock() public method

Acquires the lock on the shared cache.
public AcquireLock ( ) : void
return void

ReleaseLock() public method

Releases the lock on the shared cache.
public ReleaseLock ( ) : void
return void

SharedList() public method

Default constructor.
public SharedList ( ) : System
return System

TryAdd() public method

Attempts to add a value in the shared cache for the specified key.
public TryAdd ( SQLNETParallelItem value ) : bool
value SQLNETParallelItem The value.
return bool

TryGetValue() public method

Attempts to get value from the shared cache for the specified key.
public TryGetValue ( int key, SQLNETParallelItem &value ) : bool
key int The key.
value SQLNETParallelItem [out] The value.
return bool

TryRemove() public method

public TryRemove ( SQLNETParallelItem value ) : void
value SQLNETParallelItem
return void

Property Details

InnerList public_oe property

Gets or sets the inner dictionary used to cache items.
public List InnerList
return List

LockValue public_oe property

The lock value.
public int LockValue
return int