/// <summary> /// Gets the or create callback service. /// </summary> /// <returns>The object instance to use.</returns> private DataPackageCallbackService GetOrCreateCallbackService() { if (_datapackageCallbackService == null) { _datapackageCallbackService = new DataPackageCallbackService(); } return(_datapackageCallbackService); }
/// <summary> /// Releases unmanaged and - optionally - managed resources. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { _datapackageCallbackService = null; lock (_dataStoreLock) { _dataStoreElementsData.Clear(); _dateStoreBaselinesData.Clear(); } } }