Show / Hide Table of Contents

Interface IClosableLibrary

Defines an interface for closable libraries. A library is closable if it requires specific closing actions.

Namespace: Juhta.Net.LibraryManagement
Assembly: Juhta.Net.LibraryManagement.dll
Syntax
public interface IClosableLibrary

Methods

| Improve this Doc View Source

CloseLibrary()

Closes the library, that is, performs required closing actions to release the library resources gracefully.

Declaration
bool CloseLibrary()
Returns
Type Description
System.Boolean

Returns true if the library was closed without errors, or false if at least one error occurred in the closing process.

Remarks

This method should not throw exceptions. It is recommended that, in case of an error, the error is logged and the closing process is continued for the rest of the closing actions. In other words, the method should close the library as completely as possible.

This method will be called even if the initialization process of the library has failed. This means that the method should prepare for such situation where the library is not initialized at all or initialized only partially.

  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX