protected virtual void Dispose(bool disposing) { if (disposing) { var disposable = _client as IDisposable; if (disposable != null) { (disposable).Dispose(); } _client = null; } }
/// <summary> /// Constructor. /// </summary> public ViewerAutomationBridge(IViewerAutomation viewerAutomationClient, IStudyLocator studyLocator) : this(viewerAutomationClient, new StudyLocatorBridge(studyLocator)) { }
public StudyLocatorBridge(IStudyLocator client) { Platform.CheckForNullReference(client, "client"); _client = client; _studyComparer = new StudyDateTimeComparer(); }
protected virtual void Dispose(bool disposing) { if (disposing) { var disposable = _client as IDisposable; if (disposable != null) (disposable).Dispose(); _client = null; } }