public void Dispose() { if (frameBroker != null) { frameBroker.Dispose(); } if (frameProvider != null) { frameProvider.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (frameBroker != null) { frameBroker.Dispose(); } if (frameProvider != null) { frameProvider.Dispose(); } disposed = true; } }