// ---------------------------------------------------- #region // Public Methods public void AddBuffer(DistributedBuffer buffer) { if (this._currentBuffers.Contains(buffer)) { return; } buffer.Initialize(); this._currentBuffers.Add(buffer); }
public void RemoveBuffer(DistributedBuffer buffer) { if (!this._currentBuffers.Contains(buffer)) { return; } buffer.Dispose(); this._currentBuffers.Remove(buffer); }