Here are the examples of the csharp api class System.Collections.AutoFlushContainer.Flush() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: DReAM
Source File: AutoFlushContainer.cs
Source File: AutoFlushContainer.cs
public void Dispose() { lock(_syncRoot) { if(_disposed) { return; } _disposed = true; Flush(); } }
0
2. Example
Project: DReAM
Source File: AutoFlushContainer.cs
Source File: AutoFlushContainer.cs
private void AutoFlushCallback(TaskTimer timer) { lock(_syncRoot) { if(_disposed) { return; } Flush(); } }
0
3. Example
Project: DReAM
Source File: AutoFlushContainer.cs
Source File: AutoFlushContainer.cs
public void Update(Action<T> callback) { lock(_syncRoot) { if(_disposed) { throw new ObjectDisposedException("instance has been disposed"); } callback(_state); var updatesCounter = ++_pendingUpdates; if((updatesCounter == 1) && (_maxUpdates > 1)) { _autoFlushTimer.Change(_autoFlushDelay, TaskEnv.None); } else if(updatesCounter == _maxUpdates) { Flush(); } } }